in reply to Re^3: efficient way to find most recently modified files?
in thread efficient way to find most recently modified files?

Actually, if all your 'bobby*.txt' files follow your filenaming convention then the sort can be expressed a little bit simpler as (untested):

my @files_sorted = sort (glob('yourpath/bobby*.txt')); my $latest_file = $files_sorted[-1];

Cheers

mildside