Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Problems with map(function, array)

by Redei (Initiate)
on Dec 10, 2012 at 21:26 UTC ( #1008166=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub twice { 2 * $_[0] }
    
    @a = map twice, 1..3;
    ...
    print "@a\n";
    
    ==> 0 0 0
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (18)
As of 2015-07-02 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls