From: Martin Sharon Date: 2009-04-27T12:06:10+09:00 Subject: Re: How to parse a "line"? Oh my god..... You and Jaem's codes really work! Thanks a lot! Todd Benson wrote: > My way was only slightly different. I opted to create the whole > array, and then drop the first without creating an extra object. I > had to use (items = my_item_list.split) inside parens like that > because #shift returns the object you popped off the front of the > list, and not the actual remaining stuff. > > In all examples given, the size doesn't really matter... hah! Or as > they say, it depends :-) > > There are probably several ways to do this; I just like that particular > one. > > hth, > Todd -- Posted via http://www.ruby-forum.com/.