I tried this but the answer is always numeric. use POSIX; print isdigit($var) ? "numeric\n" : "string\n";
In reply to Test for number or string by nedals