dblack / candle.superlink.net wrote: >Well, I think we can pretty confidently say that line[0] is nil :-) > >If you have a blank line, and chomp! it, you then have an empty string. >And then, the [0] element will be nil. > >So, I suspect there's one or more empty lines in the file. > >Try this: > > # ... > line.chomp! > next unless line[0] > # ... > > Thank David, you're very right, it's my "prototype" mind the one that refuses to deal with exceptions as needed. My problem is that I was thinking that Ruby was still in the loading and checking proccess so I was unaware that it was dealing with real data. Thanks again. Enric Lafont