Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Comparing against multiple values

by buckaduck (Chaplain)
on Mar 18, 2002 at 19:45 UTC ( #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
Node Status?
node history
Node Type: note [id://152576]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2018-07-18 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (383 votes). Check out past polls.

    Notices?