The bug is in your program:
my ($saved_time, $saved_name) = (-1, '');
You are only remembering one file (with its name and time), and you always keep the latest. You need to reset that variable to (-1, '') (or undef) every time you want to start a fresh search.
In reply to Re: bug of File::Find ?
by Corion
in thread bug of File::Find ?
by iwanthome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |