Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 rifling through the Monastery: (11)
As of 2014-09-22 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (191 votes), past polls