2 lines
101 B
Perl
2 lines
101 B
Perl
use Scalar::Util qw(looks_like_number);
|
|
print looks_like_number($str) ? "numeric" : "not numeric\n";
|