> Hey again, > > I want to be able to check if a string contains only a > number, no letters, etc. I have this procedure: > > if ($numexs =~ /[0-9]/{ > # do something > } > > which doesn't do what I want it to do, I want it to do more > or less this: if ($numexs contains anything other than numbers) { > # do something > }
if($numexs !~ m/^(\d+)$/) { print "Bab Monkey you must use all digits, try again or no bannans for you!"; } > > All help much appreciated. > > Dan > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]