Re: Module listing

2003-03-07 Thread Scott R. Godin
Rob wrote: > Is there a perl command to list installed modules? #!/usr/bin/perl use warnings; use strict; foreach my $mod ( sort CPAN::Shell->expand("Module","/./") ) { next unless $mod->inst_file; print $mod->id; print ": ", $mod->inst_version if $mod->inst_version; pri

Re: Module listing

2003-03-06 Thread Janek Schleicher
Rob Dixon wrote at Thu, 06 Mar 2003 11:06:06 +: >> > > Is there a perl command to list installed modules? >> > >> > This is a FAQ. >> >> Where can this FAQ be found ? >> I tried >> perldoc -q installed >> perldoc -q module >> perldoc -q list >> with Perl 5.8.0 > > I was meaning 'This is a Fre

Re: Module listing

2003-03-06 Thread Rob Dixon
Janek Schleicher wrote: > Rob Dixon wrote at Wed, 05 Mar 2003 18:28:36 +: > > > Rob wrote: > > > Is there a perl command to list installed modules? > > > > This is a FAQ. > > Where can this FAQ be found ? > I tried > perldoc -q installed > perldoc -q module > perldoc -q list > with Perl 5.8.0

Re: Module listing

2003-03-05 Thread Janek Schleicher
Rob Dixon wrote at Wed, 05 Mar 2003 18:28:36 +: > Rob wrote: >> Is there a perl command to list installed modules? > > This is a FAQ. Where can this FAQ be found ? I tried perldoc -q installed perldoc -q module perldoc -q list with Perl 5.8.0 Greetings, Janek -- To unsubscribe, e-mail: [

RE: Module listing

2003-03-05 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Rob Dixon wrote: > Rob wrote: >> Is there a perl command to list installed modules? > > This is a FAQ. > > As far as I'm concerned, by far the best way is to use > ExtUtils::Installed like this: > > use ExtUtils::Installed; > print "$_\n" foreach ExtUtils::Installed->new->modules; > > w

RE: Module listing

2003-03-05 Thread Dan Muey
AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Module listing > > > > use ExtUtils::Installed; > > my $instmod = ExtUtils::Installed->new(); > foreach my $module ($instmod->modules()) { > my $version = $inst

Re: Module listing

2003-03-05 Thread Rob Dixon
Rob wrote: > Is there a perl command to list installed modules? This is a FAQ. As far as I'm concerned, by far the best way is to use ExtUtils::Installed like this: use ExtUtils::Installed; print "$_\n" foreach ExtUtils::Installed->new->modules; which does a lot more than just list the

Re: Module listing

2003-03-05 Thread John Mooney
use ExtUtils::Installed; my $instmod = ExtUtils::Installed->new(); foreach my $module ($instmod->modules()) { my $version = $instmod->version($module) || "???"; print " $module -- $version\n"; } >>> "Rob" <[EMAIL PROTECTED]> 3/5/2003 9:36:01 AM >>> Is there a per

RE: Module listing

2003-03-05 Thread Bakken, Luke
"foo.pm not installed?" } Luke > -Original Message- > From: Rob [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 6:36 AM > To: [EMAIL PROTECTED] > Subject: Module listing > > > Is there a perl command to list installed modules? > > &

RE: Module listing

2003-03-05 Thread wiggins
On Wed, 5 Mar 2003 09:36:01 -0500, "Rob" <[EMAIL PROTECTED]> wrote: > Is there a perl command to list installed modules? > > on Unix: find `perl -e 'print "@INC";'` -name "*.pm" -print Gleaned from a doc, perldoc perlmodlib. I alias this like

Module listing

2003-03-05 Thread Rob
Is there a perl command to list installed modules? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]