in reply to alarm and reading from file decriptor
It seems $/ was getting clobbered by the alarm somehow?
If $/ is saved aside somewhere and restored before each new read, everything is fine again.