http://www.perlmonks.org?node_id=1014131


in reply to How to zero-pad hex values in sprintf()?

I'm not a psychiatrist and never played one on TV so I can't judge if you're crazy or not. But check out this sniglet of code.

$ perl -e 'printf "%0.4x\n",128;' 0080


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg