I prefer to decode this kind of code from outside to inside.

1. The sigil @ indicates the result is an array
2. Thus, $var1{$var2} should be an array reference
3. The structure of $var1{$var2} suggests var1 means a hash, or %var1
4. Thus, $var2 is a key of the hash %var1

So, %var1 is a hash of array reference, or the values of the hash %var1 are array references. @{$var1{$var2}} is trying to dereference the references and get the arrays.

On 2011-6-23 0:44, josanabr wrote:
Hi,

I'm reading a program written in perl and I read this statement


--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to