For completeness, here is a programmatic way:
OUTER: foreach my $i ( $from .. $to ) { for (2 .. 5) { next OUTER if $i % $_; } say $i; }
In reply to Re: if ... elsif ... else
by hippo
in thread if ... elsif ... else
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |