Subject: | Need more examples |
Date: | Tue, 20 Sep 2016 15:29:39 +0000 |
To: | "bug-Text-Table [...] rt.cpan.org" <bug-Text-Table [...] rt.cpan.org> |
From: | "KARR, DAVID" <dk068x [...] att.com> |
I was looking at Text::Table for the ability to print out a CSV in ascii text, using the "line-crossings" convention, as is mentioned in the Text::Table doc.
Functionally, this looks like what I need, but frankly, I find this doc page to be incomprehensible. You need to add many examples to show how to use these features. You really only have a single complete example at the top of the page.
I'm trying to print out text from a CSV like the following:
+-----------+------------------------+-----------+----------+---+---+----+
| DC| TIMESTAMP| EVENT_CODE| SUBMITTED| OT| BE| OCE|
+-----------+------------------------+-----------+----------+---+---+----+
| Alpharetta| 2016-09-19 00:07:44.172| SUCCESS| 1| 0| 0| 0|
| Alpharetta| 2016-09-19 00:10:26.938| SUCCESS| 1| 0| 0| 0|
| Alpharetta| 2016-09-19 00:19:42.851| SUCCESS| 1| 0| 0| 0|
| Alpharetta| 2016-09-19 00:38:51.395| SUCCESS| 1| 0| 0| 0|
| Alpharetta| 2016-09-19 00:58:23.803| SUCCESS| 1| 0| 0| 0|
...
I actually already wrote a short Perl script to do this, but I was hoping I could use Text::Table as a more general solution. From what I've read in the Text::Table doc page, I have no idea how to do this. I can see how to "load" the data, but I don't understand the rendering options.
-----------------
David M. Karr | AT&T | Digital Experience Technology Services
(206) 909-0664 cell
(425) 892-5432 cell
(206) 393-9042 skype