From: Tim Bates Date: 2003-01-28T16:06:56+09:00 Subject: loop while Why can't I do: loop while t.gets !~ /[Cc]onnected/ Is there a similarly terse but readable way of doing this? I just want to throw away all input until I reach the 'connected' line (assuming t is a TCPSocket...) Tim Bates -- tim@bates.id.au