[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: Sockets problem
From: Urban Hafner <ruby-lists () web ! de>
Date: 2002-04-30 19:41:38
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic