From: Todd Benson Date: 2008-03-08T01:57:04+09:00 Subject: Re: Iterating over a nil value from CSV element On Thu, Mar 6, 2008 at 11:24 AM, Max Russell wrote: > when I'm parsing a csv file, and don't want to use those elements that > return a nil value, what is the easiest way to do so? I've tried: > > if record == nil > next > else > > where record is the current element from the file. Depending on what you are doing, you can parse first, use #compact after. Todd