in reply to How to print files by order of the timestamp?
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to print files by order of the timestamp?
by perlesrh (Initiate) on Mar 31, 2012 at 06:49 UTC |