in reply to Get the latest file

This may be impossible - it will depend on your FTP server. You have to issue a dir() command, this will give a "long listing" of the remote directory. Often this will include a timestamp (which you will have to parse yourself), but I've encountered FTP servers that only list the file names, and nothing else. IIRC, there isn't a fixed format, although output similar to "ls -l" is common.

The last entry returned will often not be the latest file.

Abigail

Replies are listed 'Best First'.
Re: Re: Get the latest file
by eserte (Deacon) on May 18, 2004 at 16:21 UTC
    You don't have to parse it yourself, you can use File::Listing instead.