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 :)

Reply via email to