http://qs321.pair.com?node_id=325353


in reply to How to determine if something is numeric?

Here's my take:

die "$var non-numeric" if $var =~ /[^0-9]/; #dies if it starts with - $var =~ s/^0*//; #this will remove any leading zeros

"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce