Syntactic Confectionery Delight | |
PerlMonks |
Re: How to determine if something is numeric?by ysth (Canon) |
on Jan 30, 2004 at 19:38 UTC ( [id://325355]=note: print w/replies, xml ) | Need Help?? |
That actually looks pretty good. It will show non-numeric for leading/trailing spaces that perl will usually ignore.
Only problem I can think of is that it may report non-numeric for something like "100000000000000000000" (because it will turn into 1e20).
When deliberately ignoring a warning, I like to isolate it to the particular warning and operation involved, like:
In Section
Seekers of Perl Wisdom
|
|