Re: Adding numbers of vector, in hash table

2007-10-22 Thread Jenda Krynicky
From: "Jeff Pang" <[EMAIL PROTECTED]> > On 10/22/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I would like, put element's array in hash table. > > How I can do it ? > > > > Hi, > > use AoH,like, > > my @array = (1,2,3,4); > my %hash = (key1 => [EMAIL PROTECTED]); > > then y

Re: Adding numbers of vector, in hash table

2007-10-22 Thread Jeff Pang
On 10/22/07, Rodrigo Tavares <[EMAIL PROTECTED]> wrote: > Hello, > > I would like, put element's array in hash table. > How I can do it ? > Hi, use AoH,like, my @array = (1,2,3,4); my %hash = (key1 => [EMAIL PROTECTED]); then you can access the array's first element by, $hash{key1}->[0]; the

Adding numbers of vector, in hash table

2007-10-22 Thread Rodrigo Tavares
Hello, I would like, put element's array in hash table. How I can do it ? my %numbers = ( zero => '0', one => '1', two => '2', three => '3', four => '4', five => '5', six => '6', seven => '7',