Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

by LanX (Chancellor)
on Dec 10, 2012 at 21:38 UTC ( #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

Comment on Re^3: Problems with map(function, array)
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-11-27 20:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (731 votes), past polls