Help - Search - Member List - Calendar
Full Version: How to find out what are modules included in perl
WorkTheWeb Forums > Webmaster Resources > Perl Beginner Help
Support our Sponsors!
Muthukumar
Hi,

How to find out the modules included in perl?

Thanks,
-Muthu

John W. Krahn
Muthukumar wrote:
QUOTE
Hi,

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
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
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
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


PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.