From: Christer Nilsson Date: 2006-01-10T10:42:22+09:00 Subject: Re: simple match of items in 2 arrays Charles L. Snyder wrote: > Thanks everyone - Robert's method works for me with minor alteration. > The errors in the example were not in the actual file. > > BTW: > Christer's answer gives me: > "undefined method `lstrip' for nil:NilClass (NoMethodError)" > > Robin's method gives me: > private method `gsub' called for nil:NilClass (NoMethodError) > > Thanks to all ! CLS, can you give me some problem input? Christer -- Posted via http://www.ruby-forum.com/.