From fca6f1bb891577ce10f81219ce9815340d45a0c3 Mon Sep 17 00:00:00 2001 From: minima Date: Fri, 30 Mar 2001 21:22:50 +0000 Subject: [PATCH] fix problem with chomp --- perl/DXDebug.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.43.0