Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: wantarray alternative

by gsiems (Chaplain)
on Jul 10, 2013 at 18:38 UTC ( #1043533=note: print w/replies, xml ) Need Help??


in reply to wantarray alternative

return (wantarray) ? map { lc } @_ : first {$_} map { lc } @_;

Update: Doh! Preceptor beat me to it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1043533]
help
Chatterbox?
LanX wished he could vote in Britain
LanX - A referendum on whether or not to have another Brexit referendum.
LanX - Legalise the hunting of fox hunters

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2017-06-23 18:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (553 votes). Check out past polls.