From 16449fbac6aa0941bb673230e32c9261f853fdad Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 9 Jul 2010 08:47:37 -0400 Subject: [PATCH] Fix for Bug 4451 Batch item tool can't process file with Windows line endings --- tools/batchMod.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/batchMod.pl b/tools/batchMod.pl index f5138d1..d511d98 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -171,7 +171,7 @@ if ($op eq "show"){ my @contentlist; if ($filefh){ while (my $content=<$filefh>){ - chomp $content; + $content =~ s/[\r\n]*$//g; push @contentlist, $content if $content; } -- 1.7.0.4