X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXDebug.pm;h=ecf4c12920e480ead3262efc9885c6cbdc03f9f1;hb=a48cd40af696e44023a2f7a797f1e90e809b88a0;hp=611df54775060f011de4ee0423c853d7126bc1c7;hpb=50bafbfa099ff0847beeb30e41bc62a361ef0536;p=spider.git diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 611df547..ecf4c129 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -34,9 +34,9 @@ sub dbg for (@_) { s/\n$//og; } - my $str = atime . "@_" ; - print "$str\n"; - $fp->writenow($str); + print "@_\n" if defined \*STDOUT; + my $t = time; + $fp->writeunix($t, "$t^@_"); } }