I've written my thoughts on the topic in another thread relatively recently. Basically, do play around and roll your own to learn.

When it comes to production code however, you should use an existing module that offers what you need. Modules are under the scrutiny of a larger audience than your own code. Also, using a module reduces the amount of both code and documentation that you have to write as well as maintain. You better have a really, really good reason to sidestep these benefits.

I did write my own CGI GET/POST parser; my own templating system; my own recursive directory tree descent. All of these were as bad as any other newbie's stab at them would be. Some of their deficiencies became obvious to me soon while others I didn't have the experience to think of and had to read about. It was indeed a learning experience I do not regret; but with that experience under my belt, I also wouldn't nowadays even dream of rolling my own for these tasks.

Makeshifts last the longest.


In reply to Re: Use modules or roll your own? by Aristotle
in thread Use modules or roll your own? by kvale

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.