lib.cgi

Source

lib.cgi

Description

The script looks through all the directories contained in @INC and reports the version number and location of all modules that it finds.

It can be run from the command line or as a CGI script on a web server.

Security

If you don’t want random hackers probing this information about your system, you should restrict access to running the module. You can do this by setting access rights (such as requiring a password via .htaccess for an Apache server) or by installing and configuring TDL::Admin.

Sample output

Here is a portion of the output gleaned from running lib.cgi on a Linux server:

Current library includes:
/usr/lib/perl5/5.8.8/i686-linux
/usr/lib/perl5/5.8.8
...

Library           Version    Location
-------           -------    --------
Acme::Spork         0.0.7    /usr/lib/perl5/site_perl/5.8.8
AnyDBM_File         1.00     /usr/lib/perl5/5.8.8
Apache::JSONRPC              /usr/lib/perl5/site_perl/5.8.8
Apache::SOAP                 /usr/lib/perl5/site_perl/5.8.8
App::Prove          3.03     /usr/lib/perl5/5.8.8

Send me reports of any errors or suggestions you have about my Perl scripts.
The code described on this page is Copyright 2003, 2007 Tony Lewis <tlewis@exelana.com>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.