Muthukumar
Jul 6 2005, 11:00 AM
Hi,
How to find out the modules included in perl?
Thanks,
-Muthu
John W. Krahn
Jul 6 2005, 11:47 AM
Muthukumar wrote:
Hello,
QUOTE |
How to find out the modules included in perl?
|
perldoc perlmodlib
perldoc perltoc
perl -le'
use File::Find;
find sub { $mods{ $File::Find::name } = () if /.pm$/ }, grep !/^.$/, @INC;
print for sort map {
my $key = $_; map {
$key =~ s!^Q$_E/!! ? $key : ()
} sort { $b cmp $a } @INC
} keys %mods
'
John
--
use Perl;
program
fulfillment
Xavier Noria
Jul 6 2005, 11:56 AM
On Jul 6, 2005, at 13:48, Muthukumar wrote:
QUOTE |
How to find out the modules included in perl?
|
That depends on the version. For example the list in perl 5.6.1 is
different from the one in 5.8.7.
The standard modules in each core Perl distribution are listed in the
corresponding perlmodlib page. ActivePerl is distributed with a
superset of them:
http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/lib/ AnyDBM_File.html
-- fxn
Jason Sullivan
Jul 6 2005, 12:37 PM
Short script to find modules installed
#!/usr/local/bin/perl
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $versionn";
}
-----Original Message-----
From: Bob Showalter [mailto:[Email Removed]]
Sent: Wednesday, July 06, 2005 8:52 AM
To: 'Muthukumar'; [Email Removed]
Subject: RE: How to find out what are modules included in perl
Muthukumar wrote:
QUOTE |
Hi,
How to find out the modules included in perl?
|
To show the "core" modules included with a given Perl version:
perldoc perlmodlib
To show locally installed additional modules:
perldoc perllocal
--
To unsubscribe, e-mail: [Email Removed]
For additional commands, e-mail: [Email Removed]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
Scott R. Godin
Jul 6 2005, 07:00 PM
John W. Krahn wrote:
QUOTE |
Muthukumar wrote:
Hi,
Hello,
How to find out the modules included in perl?
perldoc perlmodlib perldoc perltoc
perl -le' use File::Find; find sub { $mods{ $File::Find::name } = () if /.pm$/ }, grep !/^.$/, @INC; print for sort map { my $key = $_; map { $key =~ s!^Q$_E/!! ? $key : () } sort { $b cmp $a } @INC } keys %mods '
John
|
also see Module::CoreList on CPAN
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.