From: Bertram Scharpf Date: 2009-09-07T12:18:19+09:00 Subject: Re: i need to strip \n and nil Hi, Am Montag, 07. Sep 2009, 11:33:13 +0900 schrieb Bertram Scharpf: > I'm quite sure that the result is always in the first array > element. > > res = ary.first > res.chomp! I just looked it up and found thhat you probably use TCPSocket#recvfrom. data, status = socket.recvfrom ... data.chomp! Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de