update: such a feature already exists (sort of). Thanks to rozallin below for pointing this out. Linking to the CPAN search page should be sufficient, maybe not as spiffy as linking directly to a module, but it's sufficient.
(old question/comment:) I think it might be cool if we had a "cpan" tag to autolink to CPAN modules without having to find the URL. It would navigating through search.cpan.org to link up a module.

<cpan>File::Find</cpan>

Would become: File::Find

Potential hiccup: Would have to maintain a mapping of the CPAN ~users to modules in the PerlMonks DB. This would require periodic scanning of CPAN to parse the list of modules. Not too bad, methinks.

Another potential hiccup: we would have to default to the latest version of Perl POD, which may not always be desired behavior if someone was using, say, Perl 6. A <cpan version=5.6>File::Find</cpan> could use an optional attribute to accomplish this black magic.

Ideas? Comments? Tomatoes?


In reply to CPAN Tagging by flyingmoose

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.