briandfoy / net-ssh-perl

Development on the Net::SSH::Perl module to support latest ciphers, key exchange mechanisms, etc.
Other
4 stars 1 forks source link

v1.34 Can't locate object method "blocking" via package "FileHandle" ... at Perl.pm line 213 #27

Open briandfoy opened 1 year ago

briandfoy commented 1 year ago

This ticket was imported from rt.cpan.org 57030

Greetings,

One of my colleagues is experiencing the following error when trying to use Net::SSH::Perl.

Can't locate object method "blocking" via package "FileHandle" at ... Perl.pm line 213, line 1.

Perl version: 5.10.0 O/S: Redhat Linux 4.7

Example code:

use CGI qw(:standard);
use JSON::XS;
use Net::Telnet;
use Parallel::ForkManager;
use Net::SSH::Perl;
...
$ssh = Net::SSH::Perl->new($deviceIp);

many thanks, p

briandfoy commented 1 year ago

This is a duplicate of #39

briandfoy commented 1 year ago

from rolf.b.mr@gmail.com


On Thu Apr 29 03:22:00 2010, pteryx@excite.com wrote:

Greetings,

One of my colleagues is experiencing the following error when trying to use Net::SSH::Perl.

Can't locate object method "blocking" via package "FileHandle" at ... Perl.pm line 213, line 1.

Perl version: 5.10.0 O/S: Redhat Linux 4.7

Example code: use CGI qw(:standard); use JSON::XS; use Net::Telnet; use Parallel::ForkManager; use Net::SSH::Perl; ... $ssh = Net::SSH::Perl->new($deviceIp);

many thanks, p

I get the same thing on: win XP cygwin 1.7.1 Perl perl5 (revision 5 version 10 subversion 1)

The Net::SSH::Perl version is:

# $Id: Perl.pm,v 1.126 2009/02/02 01:18:27 turnstep Exp $

If I don't 'use Net::Telnet' the problem does not occur.