Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: switch, transliteration ( tr/// ) of $_ issue

by blazar (Canon)
on Nov 19, 2008 at 11:40 UTC ( #724554=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($bar) = map +(0,'low','med','high')[tr/I//] || 'drat', $foo;
    # or
    my ($bar) = map qw(0 low med high)[tr/I//] || 'drat', $foo;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2014-12-20 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (97 votes), past polls