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


in reply to Formatting Output

If you know ahead of time how wide each column is, use printf. If you want your columns to be auto-scaled for you, you can use a module like Text::Table.