if (/^-?\d+\.?\d*$/) { print "is a real number\n" }