From: HarryO Date: 2001-12-22T15:55:12+09:00 Subject: [ruby-talk:29297] Re: upper case to lower On Sat, 22 Dec 2001 11:09:08 +1100, Bashar A. Asad wrote: >> Dir.entries(X).each do |f| >> (n = f.dup).downcase! and File.rename(File.join(X, f), File.join(X, >> n)) >> end >> > okey I don't understand the "!" part why do u have it In Ruby, methods that modify an object, as opposed to returning a new version of an object with the requested change, tend to end with '!'. So, if you do ... puts fred.downcase you will see a lower case version of fred, but fred won't be changed. If yo do ... puts fred.downcase! fred will be changed to lower case.