Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2022-12-05 10:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?