Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by StarkRavingCalm (Sexton)
on Feb 16, 2013 at 19:28 UTC ( #1019064=note: print w/replies, xml ) Need Help??


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

What do you suggest to achieve the same results?

Replies are listed 'Best First'.
Re^5: Doing an 'ls' in SFTP:Foreign
by runrig (Abbot) on Feb 16, 2013 at 20:15 UTC
    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) { ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019064]
help
Chatterbox?
[Corion]: On the other hand, the Radeon 580 RX would cost 380 instead of 430 ... But still, that's ATi and I've been unhappy with ATi drivers the two times I had one in my desktops

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-08-21 08:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (319 votes). Check out past polls.

    Notices?