VO
Size: a a a
VO
VO
VG
Scalar found where operator expected at ./lib/ssh.pm line 35, near "->print $cmd"
(Missing operator before $cmd?)
VO
VO
VO
use strict;
use Net::SSH2;
my $self;
$self = {};
$self->{ssh} = Net::SSH2->new(timeout => 2000);
$self->{ssh}->connect('127.0.0.1') or die "Unable to connect Host $@";
$self->{ssh}->auth_password('x','x') or die "Unable to login $@";
$self->{chan} = $self->{ssh}->channel();
$self->{chan}->pty('dumb', { echo => 0 }, 256, 256);
$self->{chan}->shell();
print $self->{chan} "\n";
VO
String found where operator expected at t.pl line 12, near "} "\n""
(Missing operator before "\n"?)
syntax error at t.pl line 12, near "} "\n""
Execution of t.pl aborted due to compilation errors.
VG
VG
print { $self->{chan} } $cmd;
вот так надоVO
VG
VG
VO
VG
VO
AK
AK
AK
c
c