X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDebug%2FPrettyPrint.pm;h=44bae619f83f3259af6829fe3d0479a2cb3bbbff;hb=7c2d702e410b5043ec1008f0deaed436cda74828;hp=65e95bda8e8d14730a96b02f7ec2225415900311;hpb=fda8a675d11f0acce2ec53f155e8e3ca70b7db7c;p=dbsrgits%2FSQL-Abstract.git 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};