From: Mark Slagell Date: 2002-04-22T05:16:05+09:00 Subject: Re: Novice: Each and p Thorsten Haude wrote: >[...] > >File.open("/home/yooden/.mail/keywords") { |file| > file.each_line { |line| > print line if line =~ /Ruby/ > end >} >- - - Schnapp - - - >I get a parse error at line ten. This is an example from your book, so > > Thorsten, do you see where you've got a curly brace matched with an 'end'? You can use {...} or do...end, but they have to match for any particular block. -- Mark