On Tue, May 31, 2011 at 12:27 AM, Sayth Renshaw <flebber.c...@gmail.com> wrote:
> Invalid conversion in sprintf: "%0" at hexToOctal.plx line 11, <STDIN> line 1.
*snip*
> my $oct = sprintf "%0", $number;

I think that you meant %O (or maybe %o; but not %0).

> my $hex = printf("0x%02x\n", $number);

I think that you meant sprintf here.


-- 
Brandon McCaig <http://www.bamccaig.com/> <bamcc...@gmail.com>
V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl.
Castopulence Software <http://www.castopulence.org/> <bamcc...@castopulence.org>

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to