okey, let me correct myself, use this instead:
($b+0) =~ /[1-5]/ and print "\$b has to be a number and is either 1, 2 +, 3, 4, or 5.";
In reply to Re^3: 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: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |