]> dxcluster.org Git - spider.git/commitdiff
fix problem with chomp
authorminima <minima>
Fri, 30 Mar 2001 21:22:50 +0000 (21:22 +0000)
committerminima <minima>
Fri, 30 Mar 2001 21:22:50 +0000 (21:22 +0000)
perl/DXDebug.pm

index 77ad46396406d362e3de927b41ca1a45dadf2261..0e96362674a3a8b3efadb4b98aa5a421ef3e2c95 100644 (file)
@@ -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;