for (1..5) { $_ == $b ? goto JUMP : 0; } print "\$b has to be a number and is either 1, 2, 3, 4, or 5."; JUMP:
just another way around... just choose the best (comfortable) for you.
In reply to Re: Quicker way to do this IF statement 1-5
by PerlPhi
in thread Quicker way to do this IF statement 1-5
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |