Search code examples
perlindexingcpan

Why isn't my CPAN distribution indexed by PAUSE?


I've uploaded my stasis distribution to PAUSE, but it isn't in the index.

I thought this was because it didn't contain a package, so I added a package declaration to the stasis script in v0.04 like this:

#!/usr/bin/env perl
package stasis;
package main;
...

but it still wasn't indexed.

Is there anyway to get this distribution indexed that doesn't involve creating a boilerplate module file? (e.g. adding lib/stasis.pm to the distribution).


Solution

  • I believe CPAN does not index scripts.

    IMO your best option is to make a module that allows doing programmatically what your script does (and make the script use it).

    You could put in a fake module or make it think your script is a module (I think listing it in provides works), but I wouldn't if I were you.