Although pointing toward a module on CPAN is in the manner of handling someone a direct answer rather than having them search for it themselves, people who want to learn can do so using indutction. If they see enough examples of CPAN module usage, they will get the idea that CPAN must be generally useful and will investigate further. So pointing toward CPAN is analogous to letting someone watch you fish for the meal you give them. They'll eventually learn enough to fish themselves while not starving.

As for giving code vs. pointing to a module, pointing to a CPAN module is a quick, easy answer that encourages reuse. But module use may retard development of coding skills that will be needed when there is no module around to do what you need. Just like calculus, learn how to do it yourself first, then you can consult the integral tables.

-Mark


In reply to Re: Is CPAN fish or fishing? by kvale
in thread Is CPAN fish or fishing? by BrowserUk

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.