in reply to Simple problem, cant fix?
Is probably better written as:if($input =~ /[^1-9]/){ # Used to check for input words. ... } if($input =~ /[1-9]/){ print "\n"; }
You don't really want to do more regular expression matches than you have to.if($input =~ /[^1-9]/){ # Used to check for input words. ... } else { print "\n"; }
|
|---|