I taught myself perl over the course of the last two years or so, and have certainly picked up some bad habits, though I try to write my programs as cleanly as possible. One thing that I sometimes have difficulty with is getting & using modules.

Part of the reason I try to write code to work without modules is because I want my code to be as portable as possible, without having to nag the administrator to install this package or that... (I'm a web developer of course). For example, rather than using LWP for things like retrieving webpage source or extracting links, I have a habit of re-inventing the wheel and writing subroutines that will do the same thing. (i.e. using use Socket and talking to a port instead of using the LWP module)

So here's my question:
Do any of the more "seasoned" perl programmers find my "anti-module" habits are a good thing? Or am I just creating more work for myself? If I write something in 20 lines that could have been written in 2 with use of a Module, am I creative, or am I stubborn?

In reply to Use of Modules by Kozz

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.