diff --git a/tools/batchMod.pl b/tools/batchMod.pl index 7c03812640..84d1ae14b3 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -169,7 +169,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; }