Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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.

Comment on Re: wantarray alternative
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2016-04-29 21:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.