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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2016-12-05 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.