in reply to Re: Explicitly kill a Net::OpenSSH connection?
in thread Explicitly kill a Net::OpenSSH connection?

Gotcha Salva. I wonder--is there a difference between setting the variable to '', as opposed to using undef?

I did try using the private method _kill_master and it seems to work...but I know it's marked private for a reason.

  • Comment on Re^2: Explicitly kill a Net::OpenSSH connection?

Replies are listed 'Best First'.
Re^3: Explicitly kill a Net::OpenSSH connection?
by salva (Canon) on Aug 14, 2011 at 16:08 UTC
    _kill_master is called from the DESTROY method when the object goes out of scope, so there is usually no need to call it explicitly.

    In any case, I don't fully understand your message, did undef $ssh solve your problem at all?

    If the answer is no, activate the module debugging and post here the output:

    $Net::OpenSSH::debug = -1;