Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Modifying Script From Net::SFTP to Net::SFTP::Foreign

by salva (Abbot)
on Apr 10, 2019 at 21:10 UTC ( #1232424=note: print w/replies, xml ) Need Help??


in reply to Re: Modifying Script From Net::SFTP to Net::SFTP::Foreign
in thread Modifying Script From Net::SFTP to Net::SFTP::Foreign

yes, ls returns a reference in order to be able to signal errors. The usual idiom for using it is as follows:
my $ls = $sftp->ls(...) or die "ls failed: " . $sftp->error; for my $fn (@$ls) { ... }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2020-10-27 09:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (256 votes). Check out past polls.

    Notices?