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

This with strawberry perl, in case it is different on different versions: when I run "cpan autobundle" it somehow finds a list of every installed module. how does it build/access that list?
  • Comment on Where does perl keep its master module list?

Replies are listed 'Best First'.
Re: Where does perl keep its master module list?
by marto (Cardinal) on Oct 27, 2022 at 14:49 UTC

    Use the source Luke, CPAN::Shell autobundle.

    Update: See the faq link in the previous thread for various other methods.

Re: Where does perl keep its master module list?
by sectokia (Friar) on Oct 28, 2022 at 10:12 UTC
    Well I just looked at the cpan source.... autobundle -> _u_r_common -> sqlite -> index -> indexbundle. Which has this:
    my @indexbundle = ( { reader => "rd_authindex", dir => "authors", remotefile => '01mailrc.txt.gz', shortlocalfile => '01mailrc.gz', }, { reader => "rd_modpacks", dir => "modules", remotefile => '02packages.details.txt.gz', shortlocalfile => '02packag.gz', }, { reader => "rd_modlist", dir => "modules", remotefile => '03modlist.data.gz', shortlocalfile => '03mlist.gz', }, );
    So in those files, which you could read using CPAN::SQLite
Re: Where does perl keep its master module list?
by stevieb (Canon) on Oct 28, 2022 at 00:20 UTC

    This feels like an XY problem.

    Can you articulate your intention here? ie. What is it exactly you're trying to do?