in reply to How to check Inputs if Numeric
But if you want to know whether a string is "numeric", take a look at Regexp::Common, which has a bunch of regexes to determine whether a string contains a "number" - depending on what kind of number you are looking for (integer, signed integers, decimal numbers, floats, different bases, group separators, etc).$input =~ /^[[:digit:]]$/
Abigail
|
|---|