Adam Turoff on Mon, 1 Oct 2001 13:25:42 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Per Modules (fwd)


On Mon, Oct 01, 2001 at 01:15:56PM -0400, Urb LeJeune wrote:
> 	Is there a way to display all installed Perl modules, and
> ideally, their version?

Check out ExtUtils::Installed.  (This module debuted in 5.00503 I believe).

	use ExtUtils::Installed;

	print join("\n", ExtUtils::Installed::new()->modules());

That will show what's installed (both core and non-core modules).

You can also go into the CPAN shell and produce an 'autobundle file'.

	perl -MCPAN -e shell
	autobundle

That bundle file will be found in the file 'Snapshot_YYYY_MM_DD.pm'
and can be used with the CPAN shell on another machine to (mostly)
restore the configuration on your initial machine.

Z.

**Majordomo list services provided by PANIX <URL:http://www.panix.com>**
**To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**