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

Hi Monks, how i can able to know the what and all perl modules installed in my machine.It should list all the modules.Any suggestion Monks??

Replies are listed 'Best First'.
Re: how to get the perl installed modules
by perl_lover (Chaplain) on Jun 05, 2006 at 06:25 UTC
    This code will give you the list of installed modules

    use ExtUtils::Installed; my $module; my $inst = ExtUtils::Installed->new(); my (@modules) = $inst->modules(); foreach $module (@modules) { print "$module \n"; }
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: how to get the perl installed modules
by McDarren (Abbot) on Jun 05, 2006 at 06:26 UTC
Re: how to get the perl installed modules
by planetscape (Chancellor) on Jun 05, 2006 at 15:49 UTC
Re: how to get the perl installed modules
by girarde (Hermit) on Jun 05, 2006 at 14:11 UTC
    A very lowbrow way to do it would be: find / -name '.pm'|'*.PM' or on windows: dir \*.pm /s. Granted, you may have to parse the file names a bit, and this assumes that *you* want to know, not a script.
instmodsh
by schwern (Scribe) on Jun 05, 2006 at 19:11 UTC