Posted By

numberwhun on 11/12/10


Tagged

MODULES perl installed


Versions (?)

Find Installed Modules


 / Published in: Perl
 

This is a handy little bit that will show you all of the installed modules on the system.

  1. #!/usr/bin/perl
  2.  
  3. use ExtUtils::Installed;
  4.  
  5. my $instmod = ExtUtils::Installed->new();
  6.  
  7. foreach my $module ($instmod->modules()) {
  8. my $version = $instmod->version($module) || "???";
  9. print "$module -- $version\n";
  10. }

Report this snippet  

You need to login to post a comment.