Only three? Aw, gee, that's what I have in my standard perl script/module template! strict, warnings, and diagnostics - and this is just to keep me from doing stupid things, nevermind actually accomplishing work.

Now, assuming that you're going to allow all the pragma modules we want, I've found the most use so far from CGI::Application (even though there are aspects of its design that still bother me, I just haven't had time to go in and take what I like about it and put it in a module that has nothing I dislike), XML::Twig (syntax is a bit heavy, but that also gives me a lot of flexibility), and HTML::Template (the nice thing about HTML::Template is that it is a complex piece of machinery hidden behind a relatively simple API - no need for anyone to write HTML::Template::Simple!).

Of course, the other issue with the question is that I need to write domain-specific modules, and the way the question is phrased, it sounds like that isn't allowed. I'm going with the spirit of the question with the above three modules, not the letter of the question. :-)

With the spirit of the question, though, I have to say that there are a lot of other simpler modules (smaller API and smaller scope) which I find useful as well which may be a more reasonable place to start. Text::Wrap is just too cool - and is standard as well. Not difficult stuff, but at least I don't need to think about edge cases ;-) Term::ANSIColor (even though they misspell 'colour' ;->) is a nice, readable way to make things stand out in my output. LWP::Simple allows you to easily download webpages (or any other web resource). Those would be my "simpler" 3 pick.


In reply to Re: Desert Island Modules by Tanktalus
in thread Desert Island Modules by magnus

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.