One thing the ls does that the perl code does not is sort the output. My linux system supports ls -U to leave the list unsorted: if there are that many files this may fix the speed issue.
Hugo
In reply to Re: Using Perl saves time....
by hv
in thread Using Perl saves time....
by szabgab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |