From: Brian Candler Date: 2003-07-09T21:35:22+09:00 Subject: Re: Code Snippet: Array.shuffle On Wed, Jul 09, 2003 at 08:50:59PM +0900, Joe Gwozdecki wrote: > > It looks OK to me: > > > > irb(main):001:0> a = Array[1,2,3,4,5] > > => [1, 2, 3, 4, 5] > > irb(main):002:0> > > > > (this is 1.6.8) > > > > I got the error from -- a = array[1,2,3,4,5] > IRB will give a consistent error. Certainly. Ruby is case-sensitive. You need to call method [] of 'Array', not 'array' Cheers, Brian.