in reply to alarm and reading from file decriptor

You have a precedence typo, you used "||" instead of "or", see explanation in "or die" versus "|| die"
  • Comment on Re: alarm and reading from file decriptor

Replies are listed 'Best First'.
Re^2: alarm and reading from file decriptor
by tomtastic (Initiate) on May 07, 2015 at 10:14 UTC
    good spot with the '||', but the problem remains... :(
      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.