in reply to Re: is_numeric
in thread is_numeric

return eval { ! ref $x and $x == $x };

is a light weight way to fix that case.


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^3: is_numeric
by ikegami (Patriarch) on Apr 12, 2007 at 01:37 UTC
    But if you do that, objects that overload numerification to return a number won't be considered numbers...