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
|
---|
In Section
Seekers of Perl Wisdom