which will indeed short-circuit.use feature '~~'; if ($variable ~~ [1,2,3]) { ... }
(I'm backporting the Perl 6 "smart match" operator to Perl 5.)
In reply to Re: Using IF and OR, I'm sure there is a better way
by robin
in thread Using IF and OR, I'm sure there is a better way
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |