Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: Re: Re: Efficient processing of large directoryby BUU (Prior) |
on Oct 02, 2003 at 17:51 UTC ( [id://295990]=note: print w/replies, xml ) | Need Help?? |
Er, why on earth do you tell him to use while and then to use while to do the exact same thing the for loop had been doing previously? Your method is still going to need to build the 17,000 element list and iterate over it, it just uses a more explicit form. A rewrite which gets around this would be simply:
This will only read a single file at a time and has no need to create huge lists.
In Section
Seekers of Perl Wisdom
|
|