Hi goochalba,
First of all I would read the formatting instructions for perlmonks which are listed below the message entry form. They would help make your message a lot more readable. You could even have a go at editing your message and improving its readability.
Secondly I did have a look through the documentation of Net::SFTP and I could see nothing that quite corresponded to ls -ltr. However you should familiarise yourself with the do_opendir and do_stat methods. The code would be to loop through the directory handle, keeping a record of the oldest file and its timestamp. When the loop finishes your variable ought to hold the oldest file. As a preliminary exercise you could try implementing ls -ltr in perl. It ought to be exactly analagous.
In reply to Re: Perl SFTP question?
by SilasTheMonk
in thread Perl SFTP question?
by goochalba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |