Can"t locate object method "blocking" via package "IO::Handle"

Can"t locate object method "blocking" via package "IO::Handle"

am 20.06.2005 16:38:33 von kemton

I am receiving the error message:

Can't locate object method "blocking" via package "IO::Handle" at
/usr/opt/perl5/lib/site_perl/5.8.0/Net/SSH/Perl.pm line 212,
line 1.

Here is a program that demonstrates the error:

#!/usr/bin/perl

use Net::SSH::Perl;

my $ssh = Net::SSH::Perl->new("");

$ssh->login("username", "xxxxxxxx");
my $command = "date";
my ($out, $err, $rc) = $ssh->cmd($command);

print "out: $out\n";
print "err: $err\n";
print "rc: $rc\n";

Here is some additional information about the system:
# find /usr/opt/perl5 -name Handle.pm
/usr/opt/perl5/lib/5.8.0/Tie/Handle.pm
/usr/opt/perl5/lib/5.8.0/aix-thread-multi/IO/Handle.pm
/usr/opt/perl5/lib64/5.8.0/Tie/Handle.pm
/usr/opt/perl5/lib64/5.8.0/aix-thread-multi-64all/IO/Handle. pm
# uname
AIX
# oslevel
5.2.0.0
# uname -M
IBM,7038-6M2

I would appreciate any assistance in resolving this error.

Kemton

Re: Can"t locate object method "blocking" via package "IO::Handle"

am 20.06.2005 16:54:10 von kemton

I found a solution to this problem after translating a Russian post
with the same topic. They downgraded to a previous version of
Net::SSH::Perl. I upgraded from 1.27 to 1.28, and it's working now.

Kemton