I did think about checking if they where present in List::Util or not, but didn't think about previous versions. ++ for the precision.
Anyway, this is a case where any() can be replaced by grep to obtain the same result. So say $i unless grep { $i % $_ } (2,3,5);
In reply to Re^3: if ... elsif ... else
by Eily
in thread if ... elsif ... else
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |