The stupid question is the question not asked | |
PerlMonks |
Re^2: Using Net::FTP need to get latest file from the directory ?by ig (Vicar) |
on Mar 11, 2009 at 08:49 UTC ( [id://749822]=note: print w/replies, xml ) | Need Help?? |
You can use the ls or dir method to get a list of the files in the directory, then use the mdtm method on each file to get its modification time and select the file with the latest modifiction time.
In Section
Seekers of Perl Wisdom
|
|