Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: need help with array

by themage (Friar)
on Jul 18, 2005 at 16:10 UTC ( [id://475799]=note: print w/replies, xml ) Need Help??


in reply to Re: need help with array
in thread need help with array

You can even let lc use $_ implicitly:
my @wordlwr = map {lc} @word;

Replies are listed 'Best First'.
Re^3: need help with array
by socketdave (Curate) on Jul 18, 2005 at 16:33 UTC
    or one character less:

    my @wordlwr = map lc, @word;

    since map can take an expression or a block as it's first argument... now i'll take a bow for the lamest golf ever...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found