[Koha-patches] [PATCH] [SIGNED-OFF 2/2] bug 4451 followup - don't need /g for this replace

Galen Charlton gmcharlt at gmail.com
Sat Nov 13 18:58:55 CET 2010


Signed-off-by: Galen Charlton <gmcharlt at gmail.com>
---
 tools/batchMod.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/batchMod.pl b/tools/batchMod.pl
index 84d1ae1..9982e2d 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>){
-            $content =~ s/[\r\n]*$//g;
+            $content =~ s/[\r\n]*$//;
             push @contentlist, $content if $content;
         }
 
-- 
1.7.0



More information about the Koha-patches mailing list