diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
[Text::Table has handled newlines for a few years now. This node is out of date.]
Text::Table doesn't handle newlines. What is the expected work around for Text::Table? Is there another table formatting module that handles this?
my $t = Text::Table->( qw( ID Name Source Type Assigment ) ); $t->load( [ 1, '...', '...', '...', '...' ], [ 2, '...', "NA\nEU", "Emp\nEx-emp", "Active\nInactive" ], [ 3, '...', '...', '...', '...' ] ); print $t;
This is what is produced.
ID Name Source Type Assignment 1 ... ... ... ... 2 ... NA EU Emp Ex-emp Active Inactive 3 ... ... ... ...
This is what should be produced.
ID Name Source Type Assignment 1 ... ... ... ... 2 ... NA Emp Active EU Ex-emp Inactive 3 ... ... ... ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::Table w/ newlines
by tye (Sage) on Sep 03, 2004 at 20:51 UTC | |
by diotalevi (Canon) on Sep 04, 2004 at 00:26 UTC | |
|
Re: Text::Table w/ newlines
by blokhead (Monsignor) on Sep 03, 2004 at 20:58 UTC | |
|
Re: Text::Table w/ newlines
by gmpassos (Priest) on Sep 03, 2004 at 21:12 UTC | |
|
Re: Text::Table w/ newlines
by Anonymous Monk on Sep 03, 2004 at 22:44 UTC |