http://www.perlmonks.org?node_id=582049


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.

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.

    Regards,
    Marcel