Re: Hash receive Array

2007-10-09 Thread Paul Lalli
On Oct 9, 10:09 am, [EMAIL PROTECTED] (Rodrigo Tavares) wrote: > I created a hash with some elements and keys. > The hash must receive a array. What does "receive" an array mean? > Can I do it ? You can store references to arrays in a hash, but not arrays themselves: my @array = (1, 2, 3); my

RE: Hash receive Array

2007-10-09 Thread Andrew Curry
In what sense? So you mean can a hash reference an array 'a' => [EMAIL PROTECTED] ? -Original Message- From: Rodrigo Tavares [mailto:[EMAIL PROTECTED] Sent: 09 October 2007 15:09 To: beginners@perl.org Subject: Hash receive Array Hello, I created a hash with some elem

Re: Hash receive Array

2007-10-09 Thread Beginner
On 9 Oct 2007 at 11:09, Rodrigo Tavares wrote: Hi > Hello, > > I created a hash with some elements and keys. > The hash must receive a array. > > Can I do it ? yes. I think this will work. $hash{'myarray'} = [1, 2, 3]; or $hash{'myarray'} = [EMAIL PROTECTED]; and I am sure there are l

Hash receive Array

2007-10-09 Thread Rodrigo Tavares
Hello, I created a hash with some elements and keys. The hash must receive a array. Can I do it ? best regards, Faria Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento! http://br.mail.yahoo.com/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition