Thanks to everyone who responded.

I had a feeling that the problem was something simple like this.  I
had the same brackets/parentheses issue in Python (lists/tuples), but
your explanation cleared this up Bill.  Thanks!

William Djaja Tjokroaminata <billtj / y.glue.umd.edu> wrote in message news:<anfkf9$7ob$4 / grapevine.wam.umd.edu>...
> Hi,
> 
> That's because you are mixing array and range, which are totally different
> objects.  I think what you want is
> 
> $a = [[1,2,3],[4,5,6],[7,8,9]]
> (0..2).each do |i|        # not brackets, but grouping parentheses
>     (0..2).each do |j|    # not brackets, but grouping parentheses
>         print $a[i][j]
>     end
>     print "\n"
> end
> 
> 0..2   # => a range
> [0..2] # => an array with a single element of Range class
> 
> Regards,
> 
> Bill
> =========================================================================
--snip--