if ($b == 1 || $b == 2 || $b == 3 || $b == 4 || $b == 5) { print "\$b has to be a number and is either 1, 2, 3, 4, or 5."; }