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 %hash = (nums => [EMAIL PROTECTED]); print $hash{nums}[0]; #prints 1 Read up on multi-dimensional structures in: perldoc perllol perldoc perldsc Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/