Bruno Michel
11/20/2006 5:09:00 PM
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 <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
--
Bruno Michel