X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;h=e19f309ca76cddb7285ed6b2aefa8aa7e2bfe1a7;hb=d5b4190c36f130852973121042876af3c5642cd7;hp=c03f92af8b18308c1c32d52bd8affeae59024377;hpb=4c0591c17b89dbb049ba119d3f3ea15c5b56128c;p=spider.git diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index c03f92af..e19f309c 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -29,13 +29,14 @@ sub dbg { my $l = shift; if ($dbglevel{$l}) { - for (@_) { - s/\n$//og; + my @in = @_; + my $t = time; + for (@in) { + s/\n$//o; s/\a//og; # beeps + print "$_\n" if defined \*STDOUT; + $fp->writeunix($t, "$t^$_"); } - print "@_\n" if defined \*STDOUT; - my $t = time; - $fp->writeunix($t, "$t^@_"); } }