in reply to Re: How to check if a scalar value is numeric or string?in thread How to check if a scalar value is numeric or string?
sub isnum ($) { return 0 if $_[0] eq ''; $_[0] ^ $_[0] ? 0 : 1 } [download]