Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: wantarray alternative

by gsiems (Deacon)
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?
and a moth chases the moon...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2018-06-22 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (124 votes). Check out past polls.

    Notices?