From: Arthur Axel 'fREW' Schmidt Date: Tue, 26 Oct 2010 01:21:28 +0000 (-0500) Subject: fix precedence for executing in new X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7c2d702e410b5043ec1008f0deaed436cda74828;p=scpubgit%2FQ-Branch.git fix precedence for executing in new --- diff --git a/lib/DBIx/Class/Storage/Debug/PrettyPrint.pm b/lib/DBIx/Class/Storage/Debug/PrettyPrint.pm index 65e95bd..44bae61 100644 --- a/lib/DBIx/Class/Storage/Debug/PrettyPrint.pm +++ b/lib/DBIx/Class/Storage/Debug/PrettyPrint.pm @@ -19,10 +19,12 @@ sub new { my $args = shift; my $clear_line = $args->{clear_line} || "\r"; - my $executing = $args->{executing} || eval { require Term::ANSIColor } ? do { - my $c = \&Term::ANSIColor::color; - $c->('blink white on_black') . 'EXECUTING...' . $c->('reset');; - } : 'EXECUTING...'; + my $executing = $args->{executing} || ( + eval { require Term::ANSIColor } ? do { + my $c = \&Term::ANSIColor::color; + $c->('blink white on_black') . 'EXECUTING...' . $c->('reset'); + } : 'EXECUTING...' + ); my $show_progress = $args->{show_progress}; my $squash_repeats = $args->{squash_repeats};