Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: IO::Handle read error description?

by Hofmator (Curate)
on Nov 03, 2006 at 10:45 UTC ( #582049=note: print w/ replies, xml ) Need Help??

in reply to IO::Handle read error description?

Have you tried printing the $! variable after the getline() call?

-- Hofmator

Code written by Hofmator and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Comment on Re: IO::Handle read error description?
Download Code
Replies are listed 'Best First'.
Re^2: IO::Handle read error description?
by tbone1 (Monsignor) on Nov 03, 2006 at 12:31 UTC
    I was thinking of the same thing. I ran into this once, and and I believe that it was this very thing, but it was so long ago that I can't recall. I do recommend trying it, however.

    tbone1, YAPS (Yet Another Perl Schlub)
    And remember, if he succeeds, so what.
    - Chick McGee

Re^2: IO::Handle read error description?
by Marcello (Hermit) on Nov 03, 2006 at 13:44 UTC
    Good one,

    I have modified the code to log also the $! variable. Now we wait for the error to occur again. The question remains why these partial commands are received. Sometimes it takes up to 5 seconds to receive the second part, which might indicate that TCP packets are being delayed somewhere.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://582049]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2015-11-30 02:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (756 votes), past polls