Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://292379]
help
Chatterbox?
[LanX]: you mean JSuse?
[marto]: wouldn't it be jSuse
[marto]: like jQuery

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-12-14 20:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (408 votes). Check out past polls.

    Notices?