From: Stefan Rusterholz Date: 2007-05-25T09:42:13+09:00 Subject: Re: Ruby programming challenges and riddles? Drew Olson wrote: > Stefan Rusterholz wrote: >> puts *1..100 # will print each on a new line > > Cool! How does this work? What's going on behind the scenes? * is the splash operator, it expands an array to a list, if the object is not an array it will call .to_a on it so the above is virtually the same as doing: puts 1, 2, 3, ..., 100 Regards Stefan -- Posted via http://www.ruby-forum.com/.