in reply to Re: is_numeric
in thread is_numeric
I don't think this is a big deal, btw - it's just that it doesn't DWIM (for me, anyway).use warnings; no warnings 'numeric'; use Scalar::Util; $string = '12.3hello'; print Scalar::Util::looks_like_number($string), "\n"; $string *= 2; print $string, "\n"; __END__ Outputs: 0 24.6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: is_numeric
by Fletch (Bishop) on Apr 12, 2007 at 14:26 UTC | |
by ysth (Canon) on Apr 12, 2007 at 18:31 UTC | |
by Fletch (Bishop) on Apr 12, 2007 at 18:40 UTC | |
by ology (Initiate) on May 02, 2009 at 17:43 UTC |