Welcome to the Monastery | |
PerlMonks |
Re: Re: Parsing Challengeby no_slogan (Deacon) |
on May 24, 2001 at 22:37 UTC ( [id://83056]=note: print w/replies, xml ) | Need Help?? |
Some of the keys have multiple values, though. You could remember the last key...
Since "key=" is easy to recognize, another way would be to use split: %hash = ("JUNK", split /([^=\s]*)=/, $data) if you don't mind the JUNK, that is.
In Section
Seekers of Perl Wisdom
|
|