Wow, there is an almost unlimited selection of templating tools on CPAN. You must do some research because asking here will only get opinions. You need to look at the different options and see which have the features you need.

You could do what you want right now, which is to replicate a simple text table, with almost all of the tools (as well as with sprintf). You need to plan ahead. Will you need to export as JSON? As HTML? As a PDF? If your requirements can grow, then start with an expandable toolkit. If you think you can do with a specialized tool that just speaks one or a subset of outputs, use that.

The Template Toolkit is the complete solution, with full plugin architecture and lots of contributing plugin authors.

Last thing I built with templates I used Template::Tiny and its own plugins, mostly because it installed without compiling IIRC, so the user on a shared host could run code written with it. You could try starting with that.

Good luck in your search :-)

update: be more specific in my "opinion-recommendation" :)

Remember: Ne dederis in spiritu molere illegitimi!

In reply to Re: Text::Table formatting with HTML by 1nickt
in thread Text::Table formatting with HTML by yunglean808

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.