From: Andy Date: 2006-05-07T12:03:18+09:00 Subject: Re: Problem with block Lloyd Zusman wrote: > The regular expression passed to the line.chomp.split method does not > cause the leading spaces to get stripped out of the string stored in > "field" ... just any trailing spaces that might exist (of which there > are none). Therefore, you should do this: > > if (field.strip == 'Status') > > ... or something similar. Adding strip to split statement does the trick 'line.chomp.strip.split' Thanks for the help, Andy. -- Posted via http://www.ruby-forum.com/.