in reply to Re: Re: •Re: Keeping only the $n newest files/directories in a diretory?
in thread Keeping only the $n newest files/directories in a diretory?

All those -M checks take a lot of time.

On what antique system is that? Many simple filesystem operations are cached by the filesystem. System calls have overhead, but so does creating an array. And unless you have millions of files, you will probably not notice any difference in speed :)

Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).

  • Comment on Re: Re: Re: •Re: Keeping only the $n newest files/directories in a diretory?