Rare is the day that I've seen full blown implementations of things as a program example in the documentation for a module. There's a very good reason for that. Where I work we have an email processing script that reads incoming emails from a Qmail queue and performs autonomous processing of those emails. It handles every concievable popular MIME attachment you can think of. The code consists of around 6000 lines of code scattered around a main script and several modules. I'd hate to download a CPAN module that had that large of an example embedded in it.

Not only that a piece of code given as an example of code to be written by the module is meant to provide an example of that module only. Not the half a dozen or more that you need for a full blown application.

Based on your comments I'd say you started off with a poor understanding of the scope your project. That's a first step. "I want to build a POP client" is not good scope definition.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

In reply to Re^3: Mail::POP3Client basic program by blue_cowdawg
in thread Mail::POP3Client basic program by gpinzone

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.