That last line looks suspicious. $foo->($stuff) treats $foo as a sub ref, and passes $stuff to it. I don't think $ssh2 is a sub ref, so try to do without that line.if($ssh2-> auth_password('user', 'pass')){ print "ok"; my $chan2 = $ssh2-> channel(); $ssh2-> ($chan2);
(Still perl shouldn't crash on it IMHO).
In reply to Re: Net::SSH2::Channel failure on Windows XP
by moritz
in thread Net::SSH2::Channel failure on Windows XP
by bgi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |