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"; } }
In reply to Re: my 'if' condition doesn't work, why?
by Anonymous Monk
in thread my 'if' condition doesn't work, why?
by perltux
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |