I found this module when I was looking for a solution to easily and intelligently format some data in text-based tables in an e-mail message. After a lot of wrestling, I'm here to report that Data::ShowTable was not a good choice for this. Here's why:
- First, It should have a clue that the module hasn't been updated since August, 1997.
- I noticed that several standard column types weren't supported that appeared to fit in with author's intended support of
SQL character types in this capacity. The author's email address bounced when I sent a suggestion to update this area.
- The interface is at least partly broken. I was trying to use a syntax that was documented as valid, but was getting "not a CODE ref" errors, even though I wasn't using CODE refs. I switched to an equivalent syntax and it worked.
- My most substantial complaint against the module is that it insists on printing the results to STDOUT. In an era where using templates is common, this seems archiac to me. I hacked up support this to get my project done. A patch for this is here.
Since then, I've learned about a module named Text::FormatTable. If I need to address the same problem space instead, I'll try this module instead.
To it's credit Data::ShowTable seems well written and has some decent features. However, after my various annoyances with it, I've come to feel it's no longer being developed by anyone because there is a better solution out there.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|