in reply to Re: Determining the regex for foo=bar
in thread Determining the regex for foo=bar
It might be safer to add a limit to the split just in case there are more equals signs later in the line.
while ( <$inFH> ) { chomp; my ($k, $v) = split /\s*=\s*/, $_, 2; ... }
I hope this is of interest.
Cheers,
JohnGG
|
|---|