in reply to Producing documents using Perl

You could try and generate LaTeX documents. LaTeX command are all in plain ASCII, and you get nice results. I've been using it to autogenerate documentation from programs. It also has commands to make lines and boxes around text.

Have fun, Frans.