And $! is for system calls. $ssh2->connect is not a system call, so $! is not appropriate either. Net::SSH2 provides the error method to get error messages. (Although it looks like it croaks for some errors from looking at the source.)
In reply to Re^2: Net::SSH2 strangeness
by ikegami
in thread Net::SSH2 strangeness
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |