From 7fd919a628cf4abbaa647eeec2d548acf01050ae Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 24 Oct 2013 23:35:45 +0100 Subject: [PATCH] Too many parenthesis. --- Webperl/ConfigMicro.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Webperl/ConfigMicro.pm b/Webperl/ConfigMicro.pm index d9535a4..04e4da1 100644 --- a/Webperl/ConfigMicro.pm +++ b/Webperl/ConfigMicro.pm @@ -143,12 +143,12 @@ sub read { $self -> {$section} -> {$1} = $2; # Handle attributes without quoted values - # or ; at any point will mark comments - } elsif(!$self -> {"inline_comments"} && $line =~ /^\s*((.*?\w))\s*=\s*(.+)$/ ) { + } elsif(!$self -> {"inline_comments"} && $line =~ /^\s*(.*?\w)\s*=\s*(.+)$/ ) { my $key = $1; $self -> {$section} -> {$key} = $2; $self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/; - } elsif($self -> {"inline_comments"} && $line =~ /^\s*((.*?\w))\s*=\s*([^;#]+)/ ) { + } elsif($self -> {"inline_comments"} && $line =~ /^\s*(.*?\w)\s*=\s*([^;#]+)/ ) { my $key = $1; $self -> {$section} -> {$key} = $2; $self -> {$section} -> {$key} =~ s/^\s*(.*?)\s*$/$1/;