Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

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 (Chancellor) 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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2018-07-20 22:30 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (441 votes). Check out past polls.