I'm happy to announce that I've created a patch, which demerphq applied, that provides a new linktype, [dist://module distro], offering the requested functionality. The basic trick is that search.cpan.org provides a family of URLs which you can use to search for distributions, under the http://search.cpan.org/dist/ root. For example:

As an extra help, I've provided a basic conversion of (double) colons and spaces into a single hyphen, so you can use a more human-friendly link, which still creates the proper link for the common cases. For example: [dist://Class::DBI 0.95] which links to Class::DBI 0.95. I think that should work nicely.

p.s. Did I mention my previous recently added linktype already? [module://module name] (or [mod://module name]) links directly into the module docs of the most recent version of a module. For example: [module://Class::DBI] which yields Class::DBI. It is very strict about your spelling/capitalisation, though. Thank goodness [dist://module name] is more forgiving.


In reply to A new linktype for CPAN: [dist://] by bart
in thread A Modest Proposal for [cpan://module] Shortcuts by simonm

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.