$num gt "9"
That made me blink for a second before I realized what was going on. Then I noticed you're missing the other half of the condition ($num lt "0").
You'd do better to check whether non-digits match in $num:
$num =~ /\D/
This is self-documenting and complete.
Makeshifts last the longest.
In reply to Re^2: restart program on wrong user input.
by Aristotle
in thread restart program on wrong user input.
by BioGeek
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |