Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: comments/discussion

by grantm (Parson)
on Sep 09, 2002 at 00:43 UTC ( #196124=note: print w/ replies, xml ) Need Help??

in reply to Re: comments/discussion
in thread comments/discussion

Link to the latest version of each module, as opposed to the raw search results that one gets now

Yes, that is a bit annoying and probably something that ought to be fixed. Is there in fact a way to link directly to the main page for the 'latest' version of a distribution on (without having to specify the author's CPAN ID)?

Comment on Re: Re: comments/discussion
Replies are listed 'Best First'.
Re: Re: Re: comments/discussion
by grantm (Parson) on Sep 09, 2002 at 10:01 UTC

    I got an email reply from Graham Barr that this format link does work: From the PM side, there are a couple of gotcha's:

    • you have to use the distribution name which might not be the commonly used name (eg: libwww-perl rather than LWP
    • you have to remember that distribution names use hyphens rather than double colons (eg: XML-Parser)
    • don't forget about case sensitivity

    Given all this, it's not hard to see why the [cpan://name] links go to the search function but if you get the module name wrong (eg then falls back to search mode anyway.

    So, perhaps the implementation of the [cpan://name] links should be fixed to change '::' to '-' and then point to

      There is a big difference between a distribution and a module. Substituting :: with - will not work for most modules.

      I would like to see the cpan links to link to

      right now that is an issue for modules that don't have pod, but we can fix that

        Yes, there is a big difference and the perldoc-style link seems to work well. It would be even better (you just knew that was coming didn't you) if it wasn't case-sensitive or if it redirected to search on failure. Eg: simply ends up saying 'Not Found' simply because 'agent' was not capitalised.

        Anyway, I've ended up getting sidetracked on the details of linking from PM to search.cpan (which arguably isn't broken anyway) when what I'm most interested in is setting up an infrastructure on PM so that search.cpan can link to discussion forums. I think the best approach (at least initially) would be to base the structure around distributions on the PM side.

Re: Re: Re: comments/discussion
by belg4mit (Prior) on Sep 09, 2002 at 01:10 UTC
    Yes, a google style "lucky" option, the old behavior. I emailed the webmaster about this sometime ago, but the more people that do the more likely it is to be implemented?

    perl -pew "s/\b;([mnst])/'$1/g"

      I am considering a google style lucky option, but it is not high on the todo list right now

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://196124]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2015-11-28 06:04 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (738 votes), past polls