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 [download]