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
In reply to Re^2: Determining the regex for foo=bar
by johngg
in thread Determining the regex for foo=bar
by japhmi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |