in reply to Pretty text reports with perl

You could consider pack for this. There is a very good perlmonks tutorial: Pack/Unpack Tutorial (aka How the System Stores Data).

There is also a tutorial in the docs perlpacktut. It includes an example of how to read a table similar to yours, the techniques could be used to construct one.

Replies are listed 'Best First'.
Re^2: Pretty text reports with perl
by tsk1979 (Scribe) on Jun 16, 2009 at 08:51 UTC
    Thanks, I used pack, and its working perfectly. I created a format string and stored in in a variable. Everywhere I use format string. So all reports have the same look and feel!