From 16107fad8019753732a49f18a2844401129bdf02 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..67ebc8c 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