Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re^4: How to check Inputs if Numericby Anonymous Monk |
on Mar 16, 2014 at 11:52 UTC ( [id://1078510]=note: print w/replies, xml ) | Need Help?? |
just a quick (final) note : ($nr+0 eq $nr ) is not perfect for checking on numbers in general, but it is a very good check for integer numbers. It avoids perl complaining about casting as some other methods would and is pretty easy on resources
In Section
Seekers of Perl Wisdom
|
|