Find Installed Modules


/ Published in: Perl
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.