in reply to Drawing a table

You could also look into format, which is standard in Perl to create preformatted text.. Chapter 7 in Programming Perl...