Linking to CPAN

All through these blog pages, I’ve been linking to CPAN modules I’m talking about so that it’s easy for readers to find them.  I knew I was linking to specific versions, but couldn’t figure out how to link to the latest version of the module.  I noticed the docs for Task::Kensho do it, and am going to start doing it too.

The secret is to use links like this:  http://search.cpan.org/perldoc?Task%3A%3AKensho

The %3A are the URI encoding of a : so this goes to http://search.cpan.org/perldoc and searches for the module name automatically.  Neat.

Tags:

6 Responses to “Linking to CPAN”

  1. brian d foy says:

    You can also use links such as http://search.cpan.org/dist/Task-Kensho

  2. Perl-Uwe says:

    And on http://search.cpan.org/ you will also find these links in the upper right corner (“perma link”). On the distributions site or on the documation for a single module.

  3. Jakub Narebski says:

    You can also use http://p3rl.org/Tash::Kensho link.

Leave a Reply