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

Can't locate object method "blocking" via package "FileHandle" #39

Open briandfoy opened 1 year ago

briandfoy commented 1 year ago

This ticket was imported from rt.cpan.org 77088

We are migrating from solaris perl 5.10 to linux perl 5.10 and ran into this error:

Can't locate object method "blocking" via package "FileHandle" at line 216.

213     $ssh->{session}{sock} = $sock;
214     $ssh->_exchange_identification;
215
216     defined($sock->blocking(0))
217         or die "Can't set socket non-blocking: $!";
218

Problem is I cannot find a blocking() method in any of the Net::SSH::Perl distro. So, is this a bug, or am I missing something obvious?

briandfoy commented 1 year ago

from smile4steve


On Wed May 09 12:17:30 2012, smile4steve wrote:

We are migrating from solaris perl 5.10 to linux perl 5.10 and ran into this error:

“Can't locate object method "blocking" via package "FileHandle" at line 216.

---snip---

213 $ssh->{session}{sock} = $sock; 214 $ssh->_exchange_identification; 215 216 defined($sock->blocking(0)) 217 or die "Can't set socket non-blocking: $!"; 218

---/snip---

Problem is I cannot find a blocking() method in any of the Net::SSH::Perl distro. So, is this a bug, or am I missing something obvious?

It’s probably related to this:

$ perl -e 'use IO::Handle; warn ref *STDOUT{IO}'
IO::Handle at -e line 1.
$ perl -e 'use FileHandle; warn ref *STDOUT{IO}'
FileHandle at -e line 1.