|
|
|
|
 请问: 如何查询perl 已经安装的模块? - Reinhard [ 2004-06-28 09:20 | 135 byte(s)]
 Re: 请问: 如何查询perl 已经安装的模块? - Mosesw [ 2004-07-27 17:22 | 9 byte(s)]
 Re: 请问: 如何查询perl 已经安装的模块? - Reinhard [ 2004-06-28 10:25 | 356 byte(s)]
 Re: 请问: 如何查询perl 已经安装的模块? - tingle [ 2004-09-19 18:32 | 133 byte(s)]
 Re: 请问: 如何查询perl 已经安装的模块? - fayland [ 2004-09-20 20:54 | 149 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
windows / Linux (Redhat)
Activestat Perl v5.8.0
BTW, how about other lower versions?
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
Already got it:
use the following command pattern: perl -MThe::Module::Name
to query whether gd module for perl installed:
$perl -MGD
if got error message, then the module was not installed.
if Not error message, then the module is already installed.
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
use ExtUtils::Installed;
my $inst = ExtUtils::Installed->new();
print join "
", $inst->modules();
|
|
|
[Original]
[Print]
[Top]
|
|
|