To get only names ending in .html, I would do this: my @jrnFiles = grep {/\.html$/} readdir DIR; Perl should be fine with 1 million files in the directory.
In reply to Re: Using READDIR runs out of memory
by Marshall
in thread Using READDIR runs out of memory
by DenairPete
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |