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


in reply to Detect if a scalar is NaN

On page 44 of the Perl Cookbook there is an excellent discussion on how to test whether or not a string is a number. If you do not already have the book, I highly recommend you get it.
davidj