l for sure come in handy.
Regards,
Jaimee
-Original Message-
From: drieux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 7:02 PM
To: [EMAIL PROTECTED]
Subject: Re: How to check installed Modules in perl
On Wednesday, April 17, 2002, at 09:24 , Jaimee Spencer wrote:
>
>
On Wednesday, April 17, 2002, at 09:24 , Jaimee Spencer wrote:
>
> #!/usr/bin/perl
> # list all of the perl modules installed
> use File::Find ;
> for (@INC) { find(\&modules,$_) ; }
>
> sub modules
> {
> if (-d && /^[a-z]/) { $File::Find::prune = 1 ; return }
> return unless /\.
Spencer" To: "'Alex Cheung Tin Ka'"
<[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: RE:
On Wed, 17 Apr 2002, Alex Cheung Tin Ka wrote:
> I would like to know what can I do to check whether I have installed particular
>module in perl.
perldoc perllocal returns a list of modules that have been
installed, but this is different from the modules that you can
use. I am not too sure
You can use the ExtUtils::Installed module to list all the modules installed
in your copy of perl. It's available in CPAN.
Gabby Dizon
Web Developer
Inq7 Interactive, Inc.
http://www.inq7.net
http://you.inq7.net
- Original Message -
From: "Alex Cheung Tin Ka" <[EMAIL PROTECTED]>
To: <[EMA
On Apr 17, Alex Cheung Tin Ka said:
>I am new to perl. I would like to know what can I do to check
>whether I have installed particular module in perl.
The simplest way is:
perl -MModule -e0
If that runs without Perl saying "Can't find Module.pm in ...", you've got
the module.
Example: