Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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


Comment on Re: Re: Hash Problem
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-29 03:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls