That is one methodprint "\$b has to be a number and is either 1, 2, 3, 4, or 5." if ($b +< 1 || $b > 5);
Take a look at perlintro. It has good explenations of all the constructs
In reply to Re: Quicker way to do this IF statement 1-5
by zer
in thread Quicker way to do this IF statement 1-5
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |