Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Probably an easy map question

by andye (Curate)
on Jan 15, 2009 at 17:02 UTC ( #736591=note: print w/ replies, xml ) Need Help??


in reply to Re: Probably an easy map question
in thread Probably an easy map question

I don't think you need $a and $b, split should do the job by itself:

my %hash = map {chomp; split / = /} <INT>;
all the best, andye


Comment on Re^2: Probably an easy map question
Download Code
Re^3: Probably an easy map question
by shmem (Canon) on Jan 15, 2009 at 18:48 UTC

    I shouldn't use ($a, $b) since these are special and for something else - but I adhered to the OP's code in order to not change too much... ;-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2015-07-05 22:21 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 (68 votes), past polls