From 6695ab182b22c172628e12efcc0da5d29e74c7f0 Mon Sep 17 00:00:00 2001 From: joey <> Date: Thu, 18 Nov 2004 13:17:01 +0000 Subject: [PATCH] Different way of splitting --- Util.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Util.pm b/Util.pm index 87ace99..76accc9 100644 --- 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+$//; -- 2.20.1