From: 12 34 Date: 2007-07-02T07:41:17+09:00 Subject: Re: Test equality of each element in an array Todd Benson wrote: > On 7/1/07, 12 34 wrote: > > This works for me just fine (the exact same thing you are doing): > > ['.tif''].include? File.extname('/Volumes/2001/Tioga > OCSS.x.tif').downcase > > => true > > > Are you sure you don't accidentally have any extra/weird characters in > either your extNot2Move array or your File names? Thanks. Yes this works, and it works when I change one of the tif to txt for example. So the problem must be in the extNot2move.any? part. More fiddling and learning. -- Posted via http://www.ruby-forum.com/.