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

Re: Comparing against multiple values

by buckaduck (Chaplain)
on Mar 18, 2002 at 19:45 UTC ( [id://152576]=note: print w/replies, xml ) Need Help??


in reply to Comparing against multiple values

Could be a candidate for the Switch module:

use Switch; switch ($foo) { case [$bar,$baz,$boo] { print "yep!\n" } }

buckaduck

Log In?
Username:
Password:

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

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

    No recent polls found