From: Sebastian Hungerecker Date: 2008-05-23T04:58:32+09:00 Subject: Re: Local Jump Error Clement Ow wrote: > That means to say that I cant have an each, because Find does not return > an array? Yes. > So does it mean to say that I'll need not have each at all? Yes. > Do i do it this way then? > Find.find($source) do |file| > src1 << file unless $file_exception[i].any? do |x| > /#{x}/i =~ File.basename(file) > end > end Yes, exactly. > Find.find(src1) do |file| > file.each do |f| find yields the filenames as strings. So file.each will call String#each on the filename. I don't think that that's what you want to do there (as filenames only have one line anyway). HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826