Re: [MacPerl] How can I display a number in dual representation, e.g. 29 --> 11101?
[email protected] (Detlef Lindenthal) Fri, 04 Mar 2005 14:54:50 +0100
| Newsgroups | perl.macperl |
|---|---|
| Message-ID | <[email protected]> |
--------------070000040307050809000805
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Bart Lateur wrote:
>"%b" works in perl5.8.x, and,
>judging by the "perldoc -f sprintf" for 5.6.1, in 5.6.1 too.
>
This is what I was looking for.
My MacPerl version number was 5.2.0r4; I just downloaded
MacPerl 5.6.1r2
for MacOS9.2 and found that printf "%b" ... works.
I also downloaded
Mac-Carbon 0.71
for MacOSX; unfortunately I could not find an application
nor a make...-how-to.
Thank you also for the other suggestions.
Detlef Lindenthal
--------------070000040307050809000805--