Ed Howland wrote:

> Why does each traverse into the inner arrays as well (tried it with 3
> and 4 deep?)

This does not happen, but the puts makes it seem so. What really
happens is this:

=> puts [1, 2, 3]
1
2
3
=> puts [4, 5, 6]
4
5
6

Try p though:

=> [[1, 2, 3], [4, 5, 6]].each {|x| p x}
[1, 2, 3]
[4, 5, 6]

Greetings,
Markus