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


in reply to Decimal alignment and loss of zero at print?

You will want to look at printf (the formatting for the string is at sprintf).

Cheers,
Shendal