print $sftp->ls('.'), $/;
I don't know anything about Net::SFTP, but the doc sez:
$sftp->ls($remote [, $subref ])So try something like (untested)
Fetches a directory listing of $remote.
If $subref is specified, [but you're not specifying a $subref] ... .
If $subref is not specified, returns a list of directory entries, each of which is a reference to a hash as described in the previous paragraph. [emphases added]
Update: See also Data::Dump.
Give a man a fish: <%-{-{-{-<
In reply to Re: Using Net::SFTP
by AnomalousMonk
in thread Using Net::SFTP
by slugger415
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |