From: Dave Thomas Date: 2000-12-22T10:46:48+09:00 Subject: [ruby-talk:7928] Re: New to Ruby takaoueda@my-deja.com writes: > Now I am at page 51. I tried the code at the bottom of this page, and > got an error message, > undefined method `squeeze!' for nil (Name Error). > Is this a bug in ruby 1.6.1? Without this one line it produced the > expected output. In my trial, songFile was changed to DATA, and the > contents of the file on top of page 53 were written after the source > code with the heading line __END__. No, I think it's because you have a blank line in your data, so the #split method is not finding any fields, to the assignment is setting the variables to nil. Regards Dave