Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Re: Re: Parsing Challenge

by gumpu (Friar)
on May 25, 2001 at 10:36 UTC ( #83244=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Parsing Challenge
in thread Parsing Challenge

It does not pick up the last value for the last key, should have tested it better. I also think that your version is more readable. Though I would leave out the = from the key.

$hash{$1} = $2 while ($data =~ /(\w+)=((\w+( |$)+)+)/g);

Have Fun

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2022-11-26 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?