From a52a1004576857c1c1539b241aae1adab0b242b0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 16 May 2007 14:12:10 +0000 Subject: [PATCH] ";" nicht als Kommentarzeichen ansehen. --- SL/Inifile.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SL/Inifile.pm b/SL/Inifile.pm index f7fe27b3c..aadec0af1 100644 --- a/SL/Inifile.pm +++ b/SL/Inifile.pm @@ -52,12 +52,10 @@ sub new { open FH, "$file" or Form->error("$file : $!"); while () { - next if m/^(#|;|\s)/; - chomp; # strip comments - s/(#|;).*//g; + s/#.*//g; # remove any trailing whitespace s/^\s*//; -- 2.20.1