Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Parsing data into an Array of Hashes

by Abigail-II (Bishop)
on Sep 18, 2003 at 13:14 UTC ( #292379=note: print w/ replies, xml ) Need Help??


in reply to Parsing data into an Array of Hashes

As a one-liner:

my @data = map {chomp; +{/([^=]+)=([^,]+),?/g}} <>;

Abigail


Comment on Re: Parsing data into an Array of Hashes
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-23 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls