Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^5: Doing an 'ls' in SFTP:Foreign

by runrig (Abbot)
on Feb 16, 2013 at 20:15 UTC ( #1019071=note: print w/ replies, xml ) Need Help??

in reply to Re^4: Doing an 'ls' in SFTP:Foreign
in thread Doing an 'ls' in SFTP:Foreign

I suggest realizing that it returns a reference to an array of hashrefs. If you don't know what that is, read the docs that I've already linked to. You must deference the result to achieve the result you desire. There are even examples within this thread of posts somewhere. Example:

my $result = $sftp->ls(...); foreach my $f (@$result) { ... }

Comment on Re^5: Doing an 'ls' in SFTP:Foreign
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2015-11-29 13:02 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls