From: Bruno Michel Date: 2006-11-21T02:09:21+09:00 Subject: Re: How to put array into variables a, b = *[1, 2, 3] a => 1 b => 2 3 has been rejected. evgeny.zislis@gmail.com a �crit : > 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 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 -- Bruno Michel