Nilay Puri, Noida am Donnerstag, 24. November 2005 10.22:
> Hi All,

Hi

> If on a server there perl documentation is present for DBI, does that
> mean DBI is also installed.

No. 
The doc is installed with the module. But nothing prevents from deleting the 
module or just installing the doc.

> My confusion is: on running the script to search for installed modules
> not a single module is listed.

You can look for modules by hand, for example with

$ find /usr/lib/perl5/ -name DBI.pm

Or (more reliable) you can check if modules are installed by trying to load 
them:

$ perl -le 'use strict; use warnings; use DBI;'

If no error occurs, the module is installed.

> #!/usr/bin/perl
> use ExtUtils::Installed;
> my $instmod = ExtUtils::Installed->new();
> foreach my $module ($instmod->modules()) {
> my $version = $instmod->version($module) || "???";
>        print "$module -- $version\n" ;
> }
> But perldoc DBI gives result.

hth

joe

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to