Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the list of "standard" perl modules available in system?

Tags:

module

perl

There is a phrase in perlmodlib(1):

It's possible that not all modules listed below are installed on your system. For example, the GDBM_File module will not be installed if you don't have the gdbm library.

How to get actual list of the standard modules installed in the system?

like image 755
Igor Chubin Avatar asked Dec 27 '22 20:12

Igor Chubin


1 Answers

The cpan command can do it:

% cpan -a

I wrote App::Module::Lister to do this job. Although it's a module, it's also a program that does what you want when you run it like a program:

% perl `perldoc -l App::Module::Lister`

Several other Stackoverflow questions answer this for particular modules, including:

  • How do I check whether a Perl module is installed?
  • How can I check if I have a Perl module before using it?
  • How to check availability of Perl, its version and presence of a required module?

For your particular question, though, do you really care what's implementing your DBM features? Do you have some question about that?

like image 57
brian d foy Avatar answered Dec 31 '22 14:12

brian d foy