Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

The blocking method in IO::Handle

by Anonymous Monk
on Feb 21, 2005 at 15:11 UTC ( [id://433074]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I have downloaded from CPAN a module (Net::SSH::Perl) that uses IO::Handle::blocking and "Can't find method ..." it on the fairly old perl-5.8.0 Installation where I want to use it. But 'man IO::Handle' documents it. How do I use it? Please not "Update to newest perl" because it's not my server, and there are many CGI-Scripts.

Replies are listed 'Best First'.
Re: The blocking method in IO::Handle
by esskar (Deacon) on Feb 21, 2005 at 16:03 UTC
    what operating system are you using?
    blocking is a XS function which may not supported by your OS!
      It's linux! And I have now found (by wild experimenting) that calling perl with "-MIO::Handle" let's it vanish. But why? Apparently it's loaded from the modules anyway, or they couldn't construct the object.

        Native Perl IO handles are constructed by the perl interpreter without the IO::Handle module and are treated as IO::Handle objects automatically by Perl. But, the methods for IO::Handle don't get loaded unless someone loads the IO::Handle module. If Net::SSH::Perl is using IO::Handle methods, then it should be loading the required module. Submit a bug report against Net::SSH::Perl.

        - tye        

        but you are sure that IO::Handle exists on your maschine?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://433074]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found