Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-10-28 11:12 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (381 votes). Check out past polls.