Matthew PATTISON <mfp / students.cs.mu.OZ.AU> wrote:
[...]
> e.g. Ruby seems to wait a long time before gets() returns, even when there's 
> stuff waiting on the socket. I've tried setting $/ = "\r\f" but that didn't
> work - my script just hung. Any ideas? Is $/ the right variable to
> set so that socket.gets will look for a different line separator?

Hm, AFAIK Windows uses \r\n. Maybe that will work as $/

Urban

-- 
  With joy in the Teaching, delighting in the Teaching, and pondering over
  the Teaching, the bhikkhu who remembers the Teaching does not fall away
  from the Teaching. 364