Since "key=" is easy to recognize, another way would be to use split:foreach (split " ", $data) { if (/^([^=]*)=(.*)/) { $hash{$last=$1}=$2 } elsif (defined $lastkey) { $hash{$last} .= " $_" } }
In reply to Re: Re: Parsing Challenge
by no_slogan
in thread Parsing Challenge
by symŽ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |