Re: NET::SFTP - How to close connections



Dave wrote:
I cannot find any method to close SFTP connection since $ftp->quit
works only with FTP.I have to run many SFTP scripts and I cannot let
all my connections hang up.

Did you read the docs for the Net::SFTP module? Did you miss the close
method:
$Session->do_close or [handle the error]

But the connection should close all by itself when the handle goes out
of scope (or the program ends).

--
David Filmer (http://DavidFilmer.com)

.