From: Peter Bailey Date: 2006-06-23T03:22:55+09:00 Subject: Why is "nil" being included in an array? I'm trying to simply lower-case all of the files in a directory. It doesn't work because RUBY complains about not being able to convert "nil" to a string. Why in the world is it even including "nil" in my array? files = Dir.glob('*.pdf') files.each do |file| File.rename(file, file.downcase!) end It says: "...can't convert nil into String (Type error)..." Thanks, Peter -- Posted via http://www.ruby-forum.com/.