From: Michael Fellinger Date: 2009-09-07T07:11:37+09:00 Subject: Re: ["test string\n", nil] i need to strip \n and nil On Sun, Sep 6, 2009 at 10:27 PM, Bigmac Turdsplash wrote: > im sending files back and forth form a client and a server using > sockets, > > the first string the server sends to the client is the size of the file, > "59023" > > the client recives this string in this format "59023\n", nil > > i need to trim \n and nil from the string so i can do some math with the > string... ["59023\n", nil].join.to_i -- ^ manveru