Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Using Net::SFTP

by kcott (Archbishop)
on Feb 21, 2018 at 22:32 UTC ( [id://1209700]=note: print w/replies, xml ) Need Help??


in reply to Using Net::SFTP

G'day slugger415,

If you look in the documentation for Net::SFTP, you'll see under $sftp->ls($remote [, $subref ])]:

"... returns a list of directory entries, each of which is a reference to a hash ..." [my emphasis]

So you're getting something like this:

$ perl -E 'my $x = {a=>1}; say $x' HASH(0xad5cb8)

You can use modules like Data::Dumper (builtin) or Data::Dump (CPAN) to investigate further, e.g.

$ perl -E 'use Data::Dump; my $x = {a=>1}; dd $x' { a => 1 }

— Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1209700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found