Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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.

In reply to Data::ShowTable by markjugg

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • 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.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-06-09 01:12 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (35 votes). Check out past polls.