From: minima Date: Fri, 30 Mar 2001 21:22:50 +0000 (+0000) Subject: fix problem with chomp X-Git-Tag: R_1_47~64 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fca6f1bb891577ce10f81219ce9815340d45a0c3;p=spider.git fix problem with chomp --- diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 77ad4639..0e963626 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -53,8 +53,9 @@ sub dbgstore { my $t = time; for (@_) { - chomp; - my @l = split /\n/; + my $r = $_; + chomp $r; + my @l = split /\n/, $r; for (@l) { my $l = $_; $l =~ s/([\x00\x08\x0B-\x1f\x7f-\xff])/uc sprintf("%%%02x",ord($1))/eg;