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


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

Thanks to everyone who posted. I feel rather foolish. Somehow I was adding the zero for the padding but missing the number. I need more sleep.