use Scalar::Util::Numeric qw(isfloat); my $var = shift || 0E0; print "'$var' is "; print "not " unless isfloat($var); print "a float\n";
In reply to Re: dependable way to test for a float
by Thelonious
in thread dependable way to test for a float
by vindaloo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |