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

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

by LanX (Saint)
on Dec 10, 2012 at 21:38 UTC ( [id://1008170]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Problems with map(function, array)
in thread Problems with map(function, array)

The array is not exactly deleted, but the elements are reduced to empty strings:

DB<139> sub my_uc { my $c = shift; return uc($c); } DB<140> my_uc() DB<141> @a = map my_uc, a..c => ("", "", "")

keep in mind no argument means $c is undef!

Cheers Rolf

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found