in reply to bug of File::Find ?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: bug of File::Find ?
by iwanthome (Beadle) on Sep 09, 2005 at 07:17 UTC | |
by ambrus (Abbot) on Sep 09, 2005 at 09:14 UTC |