in reply to Test for numeric
Which tests whether a scalar is a numeric value or a string value e.g 42 vs "42".sub is_numeric { ($_[0] & ~ $_[0]) eq "0"; }
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Test for numeric
by John M. Dlugosz (Monsignor) on Jun 21, 2003 at 20:26 UTC |