From: "evgeny.zislis@..." Date: 2006-11-21T02:05:06+09:00 Subject: Re: How to put array into variables 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 > > -- > Posted viahttp://www.ruby-forum.com/.