Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Re: Parsing Challenge

by gumpu (Friar)
on May 25, 2001 at 10:36 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-25 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found