Boy has this subject been beaten to death. However it's not the easiest discussion to look up using either search. I'll update with some links soon.
If you're learning, you'll want to hand code some routines, but I would recommend digging into the module and seeing how it does it. It's another way to learn.
If you're writing production code, using modules is going to be faster and in all likelyhood less prone to errors. I've seen ads for Perl coders that require knowledge of CPAN.
For small tasks which is the crux of your question, which ever way works for you is the best way. What modules provide is a way for seemingly large tasks to become small.

Links to prior discussions on wheels or info on modules:
Module Reviews
Use of Modules
Finding the Correct Module
RE: Modules
Module Recommendation
Modules or lack thereof
What's your favorite module?
New Module Area?
to post, or not to post...
And the recursive link! Modules Vs. Manual Coding

Check out tye's link as well.

In reply to Re: Modules Vs. Manual Coding by lemming
in thread Modules Vs. Manual Coding by Chady

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.