in reply to if ... elsif ... else
For completeness, here is a programmatic way:
OUTER: foreach my $i ( $from .. $to ) { for (2 .. 5) { next OUTER if $i % $_; } say $i; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: if ... elsif ... else
by shmem (Chancellor) on Jun 01, 2017 at 10:12 UTC |