Having glanced through the documentation for Net::SFTP::Foreign and Net::SFTP::Foreign::Attributes my best guess is you would do something like:
my $dirs = $sftp->ls(...); my @sorted = sort {$a->{a}{mtime} <=> $b->{a}{mtime}} @$dirs;
In reply to Re: How to print files by order of the timestamp?
by GrandFather
in thread How to print files by order of the timestamp?
by perlesrh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |