Re: decimal -> Binary
Olof Johansson <[email protected]> Wed, 16 Nov 2011 16:14:57 +0100
| Newsgroups | gmane.comp.lang.perl.fun |
|---|---|
| Message-ID | <[email protected]> |
On 2011-11-16 09:57 -0500, Ronald J Kimball wrote: > That should be s/0*//, otherwise you'll get the wrong result for numbers > above 2147483647. That should be s/^0*//, otherwise you'll get the wrong result for numbers above 2147483647. Also: printf"$_:%b\n",$_ for@ARGV -- --------------------------------------------------------------- | Olof Johansson http://stdlib.se/ | ---------------------------------------------------------------