in reply to my 'if' condition doesn't work, why?
Yes, you can do it just fine with a regex, and see the other monks' answers. And TIMTOWTDI :-)
use Quantum::Superpositions 'any'; # OR #use Perl6::Junction 'any'; for (my $n = 0; $n < 268; $n++) { if ($n == any(40,47,76)) { print $n."\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: my 'if' condition doesn't work, why?
by perltux (Monk) on Nov 11, 2014 at 22:00 UTC | |
by Athanasius (Cardinal) on Nov 12, 2014 at 07:36 UTC | |
by tobyink (Canon) on Nov 17, 2014 at 11:29 UTC |