in reply to Quicker way to do this IF statement 1-5
if ($b=~/^[1-5]$/) { print "\$b has to be a number and is either 1, 2, 3, 4, or 5.\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Quicker way to do this IF statement 1-5
by Anonymous Monk on May 20, 2007 at 09:16 UTC | |
by graff (Chancellor) on May 20, 2007 at 18:52 UTC | |
by chromatic (Archbishop) on May 21, 2007 at 01:44 UTC |