Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
instmodsh only shows your locally installed modules - that is, the things you installed using CPAN. It will not list core modules or things that automatically come with your Perl distribution (for example, the debconf modules that are installed on all Debian systems). To check if a particular module is installed, you can use the perldoc command:
If you want to see all the modules available given your current search path, try the following short script. This script works on both Win and *nix:
Note: the main difference between oko1's solution and mine is that oko1 provides support for filtering your module list with regexes but does not sort modules or list .pl files. The solution above does not support regex selection but does sort modules and list .pl files. Best, beth Update: fixed cut&paste error in script. Update: eliminated warnings for missing @INC dirs; insured directory name is terminated with "/" so that File::Find doesn't think directory names with dots (e.g. /usr/share/perl/5.8) are files and skip them -silly File::Find) - with thanks to oko1 whose code sample below alerted me to these problems. Also added note comparing oko1 solution below and this solution. In reply to Re: perl modules
by ELISHEVA
|
|