From: matz@... (Yukihiro Matsumoto) Date: 2000-11-10T11:13:17+09:00 Subject: [ruby-talk:6239] quiz of the week Hi, Can you tell the results from the following? And what is the reasons for the results? line = "abab" print line.sub!(/a/, 'A') + line.sub!(/b/, 'B'), "\n" line = "abab" print line.sub!(/a/, 'A') + " " + line.sub!(/b/, 'B'), "\n" Be careful of the bang. ;-) matz.