Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Would you use a switch instead?

by ysth (Canon)
on Jul 05, 2009 at 08:42 UTC ( #777326=note: print w/replies, xml ) Need Help??


in reply to Re^3: Would you use a switch instead?
in thread Would you use a switch instead?

Then don't use a for loop?
my ($foo) = map { /aaa/ ? 'wanna' : /bbb/ ? 'be' : /ccc/ ? 'startin' : + 'somethin' } $value;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://777326]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-02-25 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (364 votes). Check out past polls.