in reply to Re: grab oldest file
in thread grab newest file
Which of these would use the least amount of resources?
or$report = (sort glob "$path/*B1006*")[-1];
chomp($report = `ls $path/*B1006* |tail -n 1`);
In Section
Seekers of Perl Wisdom