Importing List::Util::none is a shorter way to achieve this
if ( none { $a == $_ } 3,7,88 ) { ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Multiple numeric not or compare in if statement
by LanX
in thread Multiple numeric not or compare in if statement
by RedJeep
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |