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
In Section
Seekers of Perl Wisdom