From: "r . h a r l o s" Date: 2002-01-31T11:44:59+09:00 Subject: integer method question Hi, all. I'm just learning Ruby and already I've come across a situation that I don't understand. In irb, if I type: 2.upto(5) { |n| print n, "-" | } I expect to see: 2-3-4-5- but instead I see: 2-3-4-5-2 Why does the initial value get tacked onto the end? I'm running ruby 1.6.6 on Red Hat 7.2, irb version 0.7.4. Thanks in advance for help/answers :-) Richard -- Man's mind, once stretched by a new idea, never regains its original dimensions." --Oliver Wendell Holmes, Jr.