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;
True laziness is hard work

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

    Thank you so much for your responses on "How to print files by order of the timestamp?" What you suggested works well. Thanks again.