in reply to Re^2: if ... elsif ... else
in thread if ... elsif ... else
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: if ... elsif ... else
by AnomalousMonk (Archbishop) on Jun 01, 2017 at 17:19 UTC |