I just don't understand the fear associated with using a module. the alternative is much scarier to me. decode CGI variables? parse HTML?

Scarier to you because you know better by now. Try looking at this from a complete Perl novice's position. They see basically two options:

  1. Use a module. First they have to understand exactly what a module is, then which one to use, then where to get it, then how to download it, then how to install it, then how to use it in their script.
  2. Ask for a regex or, at most, a few short lines of code (their perspective, not mine), insert it in their existing script, done.

For most tasks (especially param or HTML parsing) using a module is by far the better choice. Convincing someone of this is the hard part. To the uninitiated, your image tag example seems pretty simple, why would they need a module for it?

Obviously you can't spend an hour discussing the various flaws in a regex with every monk that comes along. If they choose to ignore your advice in the first place that's up to them. They'll either eventually get tired of fixing buggy code and use modules, or they'll continue to write buggy code and won't be any competition in the job market ;-).


In reply to Re: UTFM - Use the Friendly Modules by cjf
in thread UTFM - Use the Friendly Modules by thunders

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.