From: Alex Gutteridge Date: 2007-07-03T17:20:36+09:00 Subject: Re: LSRC Name Picker On 3 Jul 2007, at 16:07, Ari Brown wrote: > Hey all. > I seem to get this error whenever I run my program. > > -----------------------------------------------------------| > ERROR > -----------------------------------------------------------| > namePicker-cli.rb:58: syntax error, unexpected '{', expecting kEND > @names { |f| lines = f.readlines > ^ > namePicker-cli.rb:60: syntax error, unexpected '}', expecting kEND > -----------------------------------------------------------| > What does this mean? Here is my code: > snip > @names { |f| lines = > f.readlines ### LINE 58 > lines.puts unless $. == selected.chomp > } > ### LINE 60 Untested, but shouldn't this be @names.each{ |f| lines = f.readlines ### LINE 58 lines.puts unless $. == selected.chomp } Alex Gutteridge Bioinformatics Center Kyoto University