Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^2: Sort files by oldest timestampby pelagic (Priest) |
on Oct 29, 2009 at 15:31 UTC ( [id://803972]=note: print w/replies, xml ) | Need Help?? |
ok, ok, I know, it's way old but I can't resist to say this: Your code does the LOOP as many times as there are files in the srcdir and it does a stat for ever file in srcdir in every LOOP as long as the file has not been moved yet (i.e. n! with n files). So if you have very many files in your srcdir, let's say 1,000,000 or so you will have a lot of unnecessary overhead. pelagic
In Section
Seekers of Perl Wisdom
|
|