Struggling with variable arguments to block

Ben Giddings wrote:

irb(main):001:0> *a = 1,2
[1, 2]
irb(main):002:0> *a = [1,2]
[1, 2]
irb(main):003:0> *a = [[1,2]]
[[[1, 2]]]
irb(main):006:0> RUBY_RELEASE_DATE
“2003-08-04”
irb(main):007:0> RUBY_VERSION
“1.8.0”

This is using an RPM ruby binary versioned: ruby-1.8.0-1

I get the same result as ben with a windows cygwin compiled version,
both run as a script and with irb, and with Andy’s windows installer
(again, both irb and as a script).

···

Do you Yahoo!?
The New Yahoo! Shopping - with improved product search