in reply to Net::SFTP::Foreign new constructor won't accept "more=>['-v']"

"more => ['-v']" works just fine if you omit the "backend => 'Net_SSH2'" option. Net::SFTP::Foreign uses 'ssh' by default (i.e., when no alternate backend is specified) - and 'ssh' has no problem accepting a '-v' option, so all is well. Net_SSH2, however, is not an external program; according to its docs, it's a Perl interface to libssh2. So, commandline arguments such as '-v' aren't applicable.

(Caveat Lector: I'm not an expert on either module, and am not speaking as one; I just happened to have both of them on my system, ran a bit of code against them, and reviewed the applicable docs.)


-- 
Education is not the filling of a pail, but the lighting of a fire.
 -- W. B. Yeats
  • Comment on Re: Net::SFTP::Foreign new constructor won't accept "more=>['-v']"