in reply to Decimal to Hex Converter

Even though Perl is a language where you can do a lot of different useful things without ever reading a manual, that doesn't mean you should. A good book would have taught you about printf, sprintf and pack.

But you do use strict, so you must have read some introduction to Perl. What book or tutorial did you read?

Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }

Replies are listed 'Best First'.
Re: Re: Decimal to Hex Converter
by OverlordQ (Hermit) on Aug 06, 2003 at 22:42 UTC
    Actually I dont think I did read any of the perl books or tutorials when I wrote this, it was all picked up watching a friend code. I was just starting out with perl (Feb 2001) so that's why I use print, and simple math, back then I didn't know of printf, sprintf, pack, modulus, perl one-liners or anything of the sort.