in reply to Re: alarm and reading from file decriptor
in thread alarm and reading from file decriptor

good spot with the '||', but the problem remains... :(
  • Comment on Re^2: alarm and reading from file decriptor

Replies are listed 'Best First'.
Re^3: alarm and reading from file decriptor
by tomtastic (Initiate) on May 07, 2015 at 14:16 UTC
    For the benefit of future students with this problem, I have discovered the answer myself.

    It seems $/ was getting clobbered by the alarm somehow?

    If $/ is saved aside somewhere and restored before each new read, everything is fine again.