nmerriweather has asked for the wisdom of the Perl Monks concerning the following question:

I can't find this anywhere

some modules on CPAN are in /dist/MODULENAME

while most are in /AUTHOR/MODULENAME

how/why do things get put in dist ?

Replies are listed 'Best First'.
Re: CPAN 'dist' question
by brian_d_foy (Abbot) on Aug 24, 2006 at 21:28 UTC

    On CPAN (which is just a big FTP site), there is no /dist or /<author> directories. There is a /modules directory and an /authors directory, the latter of which is broken down into various directories based on the letters in the author name. The files all live in the same place, but appear to live in many places due to symlinks.

    Perhaps you mean CPAN Search, which is a web interface to CPAN. As a web interface, it can create any URL it likes and map it to anywhere it likes. The /dist URLs are stable for a module name regardless of the latest version (e.g. http://search.cpan.org/dist/Netscape-Bookmarks/), and the /<author> URLs map to a particular distribution version, (e.g. http://search.cpan.org/~bdfoy/Netscape-Bookmarks-1.91/).

    Do you have examples where a particular module has a /dist URL but not a corresponding /<author>/ URL, or vice versa?

    --
    brian d foy <brian@stonehenge.com>
    Subscribe to The Perl Review
Re: CPAN 'dist' question
by ysth (Canon) on Aug 24, 2006 at 21:24 UTC
    /dist/foo just looks up the distribution for you; they aren't stored any differently. Same thing with /perldoc/
Re: CPAN 'dist' question
by nmerriweather (Friar) on Aug 25, 2006 at 18:50 UTC
    ah... ok, this makes sense my issue was because it is organized as search.cpan.org/dist/Section-Module not search.cpan.org/dist/Section::Module