in reply to Re: Reading specific files from a directory
in thread Reading specific files from a directory

Modern versions of Perl implement glob using readdir and grep or even faster equivalents written in C and compiled into the perl executable. For older versions of Perl, glob is the sucking death and should be avoided at almost any cost.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Reading specific files from a directory

Replies are listed 'Best First'.
Re: (tye)Re: Reading specific files from a directory
by scain (Curate) on Mar 14, 2001 at 01:18 UTC
    What counts as "older versions of perl"? I am using 5.005(+/-) and when working with lots of files (sometimes more than 20,000), glob just doesn't work.

    Thanks for pointing this out though, as it indicates that it may be time for me to move on (to a newer version, that is).

    --Scott

      Based on a quick look at the Changes* files, it looks like this change was made in 5.6.0.

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