From: Michael Chow Date: 2007-10-22T09:45:50+09:00 Subject: gsub does not work with do/end block, only brackets puts "abcdefg".gsub(/abc/) do |x| x.upcase end ^This does not work. ArgumentError, it's expecting the second argument that's required when a block is not provided. puts "abcdefg".gsub(/abc/) { |x| x.upcase } ^This works. Why?? -- Posted via http://www.ruby-forum.com/.