Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 about the Monastery: (5)
As of 2020-07-12 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?