X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXLogPrint.pm;h=244402d6962493e685edb147cd734e83427284f3;hb=7041df7e50995e06e2cd0becb28c1b0ba69fffe2;hp=9564ae690b87d84817f32c1cea06e74cab5a826f;hpb=e092b3748fa8f58e626a0a379bdee05996f69c27;p=spider.git diff --git a/perl/DXLogPrint.pm b/perl/DXLogPrint.pm index 9564ae69..244402d6 100644 --- a/perl/DXLogPrint.pm +++ b/perl/DXLogPrint.pm @@ -18,8 +18,13 @@ use DXLog; use Julian; -our $readback = `which tac`; +our $readback = 1; +if ($readback) { + $readback = `which tac`; +} chomp $readback; +#undef $readback; # yet another reason not to use the cloud! + use strict; @@ -55,7 +60,7 @@ sub print } if ($who) { $hint .= ' && ' if $hint; - $hint .= q{m{\Q$who\E}oi}; + $hint .= q{m{\Q$who\E}i}; } $hint = "next unless $hint" if $hint; $hint .= "; next unless m{^\\d+\\^$pattern\\^}" if $pattern; @@ -107,7 +112,7 @@ sub print return "show/$name: ${s}not found"; } - for (reverse @in) { + for (sort {$a <=> $b } @in) { my @line = split /\^/ ; push @out, print_item(\@line);