neversaint has asked for the wisdom of the Perl Monks concerning the following question:
such that it prints with:use Text::Table; my $tb = Text::Table->new("Planet", "Radius", "Density"); $tb->load( [ "Mercury", 2360, 3.7 ], [ "Jupiter", 71030, 1.3 ], ); print $tb;
Update: I asked this because I couldn`t make sense of its sparse documentation. Please bear with me...| Planet | Radius | Density | <-- Center the title |----------------------------------- | |Mercury | 2360 | 3.7 | <-- Left Justify |Jupiter | 71030 | 1.3 | also tabbed with separator --------------------------------------
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing Issues with Text::Table
by marto (Cardinal) on Nov 23, 2005 at 11:34 UTC | |
|
Re: Printing Issues with Text::Table
by Moron (Curate) on Nov 24, 2005 at 13:47 UTC | |
|
Re: Printing Issues with Text::Table
by Anonymous Monk on Nov 23, 2005 at 16:39 UTC |