There you're globbing on *.log, creating a list of anonymous arrays containing filename and timestamp, sorting on timestamp then getting the first element out of the sorted list and dereferencing the first element (which of course will contain the filename).print +(sort { $a->[1] <=> $b->[1] } map [$_, -M], <*.log>)[0]->[0];
_________
broquaint
In reply to Re: Assesing file timestamp
by broquaint
in thread Assesing file timestamp
by stew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |