http://www.perlmonks.org?node_id=2114

BBQ has asked for the wisdom of the Perl Monks concerning the following question: (numbers)

We all know that perl is good for it's so called lack of datatype declarations (and a bunch of other things). But what if you WANT to know if your string is an integer? Furthermore, what if your integer has already been formatted? This is the code that I came up with, but I feel it could be greatly improoved. Suggestions are > welcome!

Originally posted as a Categorized Question.