Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Re: Hash Problem

by Wonko the sane (Deacon)
on Mar 05, 2004 at 23:03 UTC ( #334402=note: print w/replies, xml ) Need Help??


in reply to Re: Hash Problem
in thread Hash Problem

I have OCD related to while loops and hash assignments. Also a liking of maps, to an unhealthy level. :P

I always liked this syntax better for stuff like this.

%h = map { chomp $_; split( ',', $_, 2 ) } <DATA>; # or %h = map { /^([^,]+)\s*,\s*([^\n\r,]+)/ } <DATA>;

Wonko

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://334402]
help
Chatterbox?
vrk adds oatmeal cookies to the platter on the sideboard.
[LanX]: evrybody can participate in a YAPC
choroba is still undecided what to present at YAPC
[LanX]: imagine the stock market if the choice for the second round would have been those two ...
[robby_dobby]: LanX: Not me. No YAPC in my country and the only one in Asia is so far off in Japan
[LanX]: Oh I thought "Misery" meant Missoury
[LanX]: where do you live?
[LanX]: YAPC Asia was renamed and you'd need to speak Japanese to be able to follow
[robby_dobby]: LanX: Misery :P
[robby_dobby]: Or India

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2017-04-24 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.