At the cost of flogging an expired quadruped, I'd like to propose a variation on that suggestion which (hopefully) won't break existing links, while adding the capability mirod was requesting.
The proposal: CPAN links which contain a hyphen should be converted to http://search.cpan.org/dist/ form. To allow linking to single-word distributions, such links should also have any trailing hyphens removed.
Module names can't contain hyphens, so there shouldn't be any existing nodes that would trigger this behavior; all past and future posts using the existing syntax will be unaffected.
This seems like a straightforward change, but I haven't poked through the monastery code base to see whether there would be more complications than expected...
Update: if the regex is general enough, this also lets you link to specific files in the distribution:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Modest Proposal for [cpan://module] Shortcuts
by davido (Cardinal) on Apr 18, 2004 at 08:40 UTC | |
by simonm (Vicar) on Apr 18, 2004 at 15:38 UTC | |
|
Re: A Modest Proposal for [cpan://module] Shortcuts
by ysth (Canon) on Apr 19, 2004 at 02:01 UTC | |
|
A new linktype for CPAN: [dist://]
by bart (Canon) on Jun 25, 2005 at 09:44 UTC | |
by simonm (Vicar) on Jun 29, 2005 at 18:29 UTC | |
|
Re: A Modest Proposal for [cpan://module] Shortcuts
by duff (Parson) on Apr 18, 2004 at 01:40 UTC | |
|
Re: A Modest Proposal for [cpan://module] Shortcuts
by sintadil (Pilgrim) on Sep 04, 2004 at 03:27 UTC |