It was benchmarked against the same thing done using a Schwartzian Transform for directories of various number of files up to 10,000. In all test it outperformed the ST (go figure). The performance was only measured in time to complete the check, no check for system impact was done while each was running.
Anyone interested in the bencmark code and results, just /msg me.
#!/usr/bin/perl -w use strict; printf "%s\n", (sort{ (-M $b) <=> (-M $a) } glob("*"));
In reply to Print the oldest file in a directory. by gnu@perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |