in reply to General Purpose String Padding

Have you looked at the format keyword yet? It is in the perlform man page.