Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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) { ... }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1019071]
help
Chatterbox?
[ambrus]: Corion: really? Does that mean the Prima watcher objects behave as handles that stop the watcher when they're destroyed, just like AnyEvent expects?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2016-12-09 08:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (149 votes). Check out past polls.