Re: [code-review] Bencode.pm
Tony Bowden <[email protected]> Thu, 2 Oct 2003 10:37:47 +0100
| Newsgroups | gmane.comp.lang.perl.code-review-ladder |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Oct 02, 2003 at 01:30:16PM +1000, Andrew Savige wrote: > Not sure if this helps you, but you can tell if a Perl value is a string > or a number by exploiting that bitwise operators operate differently on > numbers and strings. Or by using Scalar::Util::looks_like_number... Tony