# Struggling with variable arguments to block

**URL:** <https://rubytalk.org/t/struggling-with-variable-arguments-to-block/8615>\
**Category:** ruby-talk\
**Created:** [24 October 2003 19:41 UTC](https://rubytalk.org/t/struggling-with-variable-arguments-to-block/8615 "2003-10-24T19:41:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Campbell1](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@Michael\_Campbell1](https://rubytalk.org/u/Michael_Campbell1)\
**Post date:** [24 October 2003 19:41 UTC](https://rubytalk.org/t/struggling-with-variable-arguments-to-block/8615/1 "2003-10-24T19:41:59Z")

</div>

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
> 
> > **[Yahoo Shopping - We'll track the prices for you!](https://shopping.yahoo.com/)**
> >
> > Discover deals, product reviews, and compare prices on your favorite items. Plus, shop stores like Walmart, Nordstrom Rack, Amazon and more.
