]> wagnertech.de Git - mfinanz.git/commitdiff
";" nicht als Kommentarzeichen ansehen.
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 16 May 2007 14:12:10 +0000 (14:12 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 16 May 2007 14:12:10 +0000 (14:12 +0000)
SL/Inifile.pm

index f7fe27b3c60fd7afa3c0bdee0a6f616f97dc663b..aadec0af1fe6572ec7209e268a9ff79ba1a85244 100644 (file)
@@ -52,12 +52,10 @@ sub new {
   open FH, "$file" or Form->error("$file : $!");
 
   while (<FH>) {
-    next if m/^(#|;|\s)/;
-
     chomp;
 
     # strip comments
-    s/(#|;).*//g;
+    s/#.*//g;
 
     # remove any trailing whitespace
     s/^\s*//;