slugger415 has asked for the wisdom of the Perl Monks concerning the following question:
Ok I'm having a dummy moment here. Wanting to use Net::SFTP. I looked here: http://search.cpan.org/~drolsky/Net-SFTP-0.08/lib/Net/SFTP.pm but frankly don't understand how to do it.
Here's some of my code:
my $sftp = Net::SFTP->new($host, %args); print $sftp->ls('.'), $/;
It's clearly connecting successfully, but here's what I get:
HASH(0x30b7de0)HASH(0x30b8098)
I've tried assigning that to a hash, array and variable but can't seem to do anything with it. What am I missing?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Net::SFTP
by choroba (Cardinal) on Feb 21, 2018 at 22:14 UTC | |
|
Re: Using Net::SFTP
by AnomalousMonk (Archbishop) on Feb 21, 2018 at 22:12 UTC | |
|
Re: Using Net::SFTP
by kcott (Archbishop) on Feb 21, 2018 at 22:32 UTC | |
|
Re: Using Net::SFTP
by thanos1983 (Parson) on Feb 22, 2018 at 12:02 UTC |