From: 7stud -- Date: 2009-09-03T05:21:53+09:00 Subject: Re: confusing string parsing problem 7stud -- wrote: > You could do that simply like this: > > chop_size = 2 + > 2 + > 1 + > results[3].length + 1 + > results[4].length + 1 + > 1 > Whoops. The last field is 2 bytes. chop_size = 2 + 2 + 1 + results[3].length + 1 + results[4].length + 1 + 2 -- Posted via http://www.ruby-forum.com/.