http://www.perlmonks.org?node_id=903706

Skeeve has asked for the wisdom of the Perl Monks concerning the following question:

Hi!

I just skimmed through the perldoc of Net::OpenSSH but couldn't find how to close the connection established with

my $ssh= Net::OpenSSH->new($myhost);
There seems to be no "close" methode. Can someone please enlighten me? Do I simply send an "exit" or "logout" command?


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Replies are listed 'Best First'.
Re: Net::OpenSSH How do I orrectly close the connection?
by salva (Canon) on May 09, 2011 at 06:50 UTC
    undef $ssh