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

Re: "map" sometimes uses only the last mapped value

by bobf (Monsignor)
on Apr 18, 2006 at 04:06 UTC ( #543995=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub f2a {
    my ($f) = @_;
    ...
    
    print map {f2a($_)} qw(x y z); # zzz
    print map {f2b($_)} qw(x y z); # xyz
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-07-05 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?