in reply to using int and the range function
See also Scalar::Util::looks_like_number(). See also Regexp::Common::number.
Give a man a fish: <%-(-(-(-<