http://qs1969.pair.com?node_id=559691


in reply to Re: grab oldest file
in thread grab newest file

Which of these would use the least amount of resources?
$report = (sort glob "$path/*B1006*")[-1];
or
chomp($report = `ls $path/*B1006* |tail -n 1`);