Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Basic list manipulation, and a bit of map() confusion...

by Prof Vince (Friar)
on Feb 24, 2008 at 20:19 UTC ( #669868=note: print w/replies, xml ) Need Help??

in reply to Basic list manipulation, and a bit of map() confusion...

I'm not sure if you're aware of it, but your code modifies @a since $_ in map and for aliases the current list element. If you don't want this, you'd have to localize $_ or to copy the current element to a new lexical variable.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://669868]
[thepkd]: Hi, in trying to create an Array of Hash of Array of Hash. You read it right. Is it possible to dereference it without using temps?
[GotToBTru]: what are temps?

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2016-12-06 13:14 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (104 votes). Check out past polls.