in reply to Re: Re: Directory Listing
in thread Directory Listing

Update: Read these out of order, but was basically reinforcing the point that all we need is:

my @files = grep /pm$/, readdir DIRH

Replies are listed 'Best First'.
Re: Re: Re: Re: Directory Listing
by chipmunk (Parson) on Jan 10, 2001 at 00:53 UTC
    If you really want to match Perl modules, that should of course be: grep /\.pm$/, readdir DIRH; Otherwise, you're going to match rpm files, ppm files, and any other files ending in pm. :)

      Perl modules? I thought pm was for Perl Monks!

      Or is that Perl Mongers?

      Hrmmm..the real question is, why makes the letter combination "pm" so attractive to perl-related things? :)

        Which reminds me... We really need a gateway to Usenet. Who wants to write the proposal for adding comp.lang.perl.monks? ;)

                - tye (but my friends call me "Tye")