XP is just a number | |
PerlMonks |
Re: Using READDIR runs out of memoryby Marshall (Canon) |
on Mar 20, 2018 at 20:46 UTC ( [id://1211378]=note: print w/replies, xml ) | Need Help?? |
I'm not sure what you mean to do with the map? 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 Section
Seekers of Perl Wisdom
|
|