|Pathologically Eclectic Rubbish Lister|
Parsing Challengeby symŽ (Acolyte)
|on May 24, 2001 at 22:16 UTC||Need Help??|
symŽ has asked for the wisdom of the Perl Monks concerning the following question:
I need to parse a string that looks something like this:
as you can see some values are multiple values seperated by spaces.. Not sure of a good way to build a hash from this...
I am able to parse out the values with this bit of code
my @values=split(/\S+=/,$data);, but I can't figure out a good way to get the keys because of the varrying format of the values with spaces..