From: coolgeng coolgeng Date: 2008-03-06T17:49:13+09:00 Subject: Erratic result ------=_Part_5320_13329066.1204793360758 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi I do not know how to explain the different result between the two snippets: First snippet: def dial(digit) puts digit end digits = 0..9 puts digits.each {|digit| dial(digit) } output: 0 1 2 3 4 5 6 7 8 9 0..9 Second snippet: (0..9).each do |digit| puts digit end output: 0 1 2 3 4 5 6 7 8 9 Why did the first snippet will generate the word like "0..9" at last line? -- Best Regards Cooper Geng ------=_Part_5320_13329066.1204793360758--