Re: perlfaq3: NEW ANSWER: How do I find which modules are installed on my system?
[email protected] (_brian_d_foy)
| Newsgroups | perl.perlfaq.workers,perl.documentation |
|---|---|
| Message-ID | <111120020455377722%[email protected]> |
In article <[email protected]>, Philip Newton <[email protected]> wrote: > On Sun, 10 Nov 2002 12:17:55 -0600, [email protected] (_brian_d_foy) > wrote: > > +If you want a list of all of the Perl module filenames, you > > +can use File::Find::Rule. > > + use File::Find::Rule; > > + > > + my @files = File::Find::Rule->file()->name( '*.pm' )->in( @INC ); > Why not give a recipe with File::Find? i could list 10 other ways to do it too, but i chose the easiest ones. i'd rather not explain a lot of unrelated things in the answer. the File::Find::Rule example points out that you have to look for things ending in .pm in @INC. the File::Find rule is much more confusing because it's a confusing module full of black magic. i can certainly mention File::Find though :)