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

Greetings fellow monks,

I'm asking myself how CPAN identifies that a package is a Module or Documentation. I release a distribution to it (Siebel-Srvrmgr-0.02) and there are two packages identified as "Documentation" (Siebel::Srvmrgr::Regexes and Siebel::Srvrmgr::ListParser::Output::Listcomp) and one package (Siebel::Srvrmgr) that is really only documentation (POD) and is identified as a module.

How does CPAN classify that? There is any way to control such categories? I tried to find something related but got nothing.

Regards,

Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill
  • Comment on How CPAN identifies a package as a module or documentation?

Replies are listed 'Best First'.
Re: How CPAN identifies a package as a module or documentation?
by JavaFan (Canon) on Mar 16, 2012 at 15:44 UTC
    one package (Siebel::Srvrmgr) that is really only documentation (POD) and is identified as a module.
    Yet, that .pm file starts with
    package Siebel::Srvrmgr; our $VERSION = '0.02';
    Which magic do you expect the CPAN indexer to have?

    Now, I do not claim to know how the indexer works, but I would try putting documentation only in a file whose name end with .pod instead of with .pm