Or even:
c:\@Work\Perl>perl -wMstrict -le "my @ra = (0, 0, 0, 1, 0); ;; my $test_succeeded; $test_succeeded = 1 == $_ and last for @ra; ;; print 'succeeded!' if $test_succeeded; " succeeded!
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Testing multiple variables against the same criteria (IF statement)
by AnomalousMonk
in thread Testing multiple variables against the same criteria (IF statement)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |