> Works for me - what ruby version and OS? Try > > p Dir.glob("*.tif") > > p Dir.glob("*.tif").map {|f| File.basename(f, ".tif")} > > and see if either one looks visibly funny. > > martin Both lines yield the same TIFF files. The second one shows the same TIFF files, too, with the extension still there. -- Posted via http://www.ruby-forum.com/.