Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Comma's and blocks

by johngg (Canon)
on Oct 04, 2007 at 08:48 UTC ( [id://642595]=note: print w/replies, xml ) Need Help??


in reply to Comma's and blocks

Note also that there are two ways to write a map, viz map { block } list and map expression, list.

$ perl -le ' -> @arr = qw{a b c}; -> map { tr/[a-z]/[A-Z]/ } @arr; -> print qq{@arr};' A B C $ perl -le ' -> @arr = qw{a b c}; -> map tr/[a-z]/[A-Z]/, @arr; -> print qq{@arr};' A B C $

Cheers,

JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-03-29 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found