in reply to Re: Get the latest file
in thread Get the latest file

You don't have to parse it yourself, you can use File::Listing instead.