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

hasimir44 has asked for the wisdom of the Perl Monks concerning the following question:

Anyone have a suggestion on how to do the following without using the shell?
chomp($report = `ls $path/*B1006* |tail -n 1`);
update: I didn't mention that the *B1006* filenames include timestamps. So, the last one alphabetically always happens to be the newest. My *real* mistake is that I titled this "oldest" instead of "newest". Damn. :)