From: Paul Lutus Date: 2006-11-25T04:52:33+09:00 Subject: Re: unexpected kEND, expecting $ Comfort Eagle wrote: > a = IO.readlines('testparsed') > > a.each do |groupname| > filename = groupname.chomp > File.open filename > puts data > end > end > > Why does this give me: "parse error, unexpected kEND, expecting $" for > the line with the last 'end'? > a.each do |groupname| File.open(groupname.chomp,"w") { |f| f.write data } end -- Paul Lutus http://www.arachnoid.com