Different way of splitting
authorjoey <>
Thu, 18 Nov 2004 13:17:01 +0000 (13:17 +0000)
committerjoey <>
Thu, 18 Nov 2004 13:17:01 +0000 (13:17 +0000)
Util.pm

diff --git a/Util.pm b/Util.pm
index 87ace99..76accc9 100644 (file)
--- a/Util.pm
+++ b/Util.pm
@@ -325,7 +325,8 @@ sub ReadConfigFile {
     if ((!/^\s*#/) && ($_ ne "")) {
       # Chop off any trailing comments
       s/#.*//;
-      ($attr, $setting) = split(/=/, $_, 2);
+      /([^=]+)=(.*)/;
+      ($attr, $setting) = ($1, $2);
       $setting =~ s/"//g; #"
       $setting =~ s/;$//;
       $attr =~ s/^\s+//; $attr =~ s/\s+$//;