a,*b = [1,2,3,4,5,6,7,8,9] a => 1 b => [2, 3, 4, 5, 6, 7, 8, 9] On Nov 19, 2:15 pm, Luca Scaljery <lca... / gmail.com> wrote: > Hi All > > I tried to put an array into variables like this > > s, h = b.scan(/^(\w+)\s(\w+)$/) > > But for some reason 's' becomes an array and 'h' is undefined!! > > Any suggestions how to put the first result in 's' and de second in 'h' > ? > > Thnx a lot > LuCa > > -- > Posted viahttp://www.ruby-forum.com/.