in reply to Finding Oldest File in a Directory
$file =~ /BOT/ will never succeed because readdir returns the leaf name, not the whole path so you get BOT rather than /www/htdocs/reports/bot/.
For something like this I'd be inclined to use File::Find in any case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding Oldest File in a Directory
by Aristotle (Chancellor) on Oct 08, 2005 at 19:19 UTC | |
by GrandFather (Saint) on Oct 08, 2005 at 19:40 UTC | |
by Aristotle (Chancellor) on Oct 08, 2005 at 19:47 UTC | |
by GrandFather (Saint) on Oct 08, 2005 at 21:35 UTC | |
by Aristotle (Chancellor) on Oct 09, 2005 at 01:52 UTC |