in reply to Re: Producing documents using Perl
in thread Producing documents using Perl

Bah. It's trivially easy if your output is simple enough. For plain text, just use blank lines to separate paragraphs, and put the following line at the beginning of your output:
.LP
Then, run your output through the following program: (By default, it will output PostScript in 10-point Times Roman font. Of course, fonts and sizes can also be easily changed.)
groff -ms

Was that so hard? But wait, there's more...

If you're interested in putting a box around a paragraph:

.B1 paragraph text .B2
And in general, lines and boxes are easily created using the pic preprocessor. It's automatically invoked by providing the -p option to groff. A simple example:
.PS box "boxed text"; arrow; circle "circled text" .PE

Don't be afraid.

buckaduck