Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

View a summary of installed Perl modules UNIX
I am often having trouble remembering which Perl modules I have installed, where they are, what the paths in Perl are, etc. Yesterday I discovered a great little Perl script that does exactly what PHPinfo.php scripts do for PHP installs. It displays many variables about Perl, and best of all - all perl modules installed (including links to pages on CPAN for more info on module).

This is a no brainer install. Download the text file, change the name to perldigger.cgi, drop it in your CGI directory (/Library -> WebServer -> CGI-Executables by default), and change the file to executable (chmod 755 perldigger.cgi). Then just visit http://localhost/cgi-bin/perldigger.cgi (or similar depending on your setup).

Get the script and more info here:
http://sniptools.com/perldigger

    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[9,209 views]  

View a summary of installed Perl modules | 5 comments | Create New Account
Click here to return to the 'View a summary of installed Perl modules' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
View a summary of installed Perl modules
Authored by: merlyn on Jul 08, '03 12:04:54PM
Don't leave this running on your server, because it reveals information that might be useful to a bad guy.

Also, this program leaves a server open to Cross-Site-Scripting (XSS) attacks, because no escaping is done for environment variable dumps, and thus a properly encoded query string can present HTML to the visitor.

Be afraid. Be very afraid.

[ Reply to This | # ]

View a summary of installed Perl modules
Authored by: bluehz on Jul 08, '03 12:57:52PM

Thx for the warning - actually I use it on a internal LAN only IP setup just for this type thing, PHPMyadmin, Webmin, etc. None of it is accessible from outside world.



[ Reply to This | # ]
View a summary of installed Perl modules
Authored by: Darkshadow on Jul 08, '03 04:46:17PM

You could set it up in the httpd.conf file that only localhost (127.0.0.1) has access to that cgi. Then you wouldn't have to worry about anyone from the outside having access to it.



[ Reply to This | # ]
View a summary of installed Perl modules
Authored by: rickg17 on Jul 08, '03 02:10:39PM

Or you can type perldoc perllocal in the Terminal....



[ Reply to This | # ]
View a summary of installed Perl modules
Authored by: mauricev on Jul 10, '03 03:18:54AM
Or you can type perldoc perllocal in the Terminal...

This just spits out gibberish.

I have come across the follow perl program elsewhere online which does work properly..

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


[ Reply to This | # ]