|Pathologically Eclectic Rubbish Lister|
Re3: Pure Perl Internals (with Pure Perl Segfaults)by blakem (Monsignor)
|on Mar 18, 2004 at 06:50 UTC||Need Help??|
Ingy needed a pure Perl method of determining if a scalar contained an integer or a stringWhile his results are cool, he could have saved a lot of work if he'd asked around to see if anyone had already found a solution to this problem (note the unary "~", it's important)
Here are some tests to demonstrate that it works:
I found the is_integer() implementation in my cool-snippets-from-perlmonks directory, but can't seem to find the original thread.....