SyntaxFix
Write A Post
Hire A Developer
Questions
rexep not perfect... this is:
use Try::Tiny; sub is_numeric { my ($x) = @_; my $numeric = 1; try { use warnings FATAL => qw/numeric/; 0 + $x; } catch { $numeric = 0; }; return $numeric; }