in reply to Re^2: Grouping Objects by Attribute
in thread Grouping Objects by Attribute
You're right, you just need a bit of terminology thrown in there. $monks_by_level{$level} is an array reference (see perlref for details) and @{ } is how we dereference an array reference, so that we can use it as an array. You could also dereference individual scalars in the array using syntax such as $monks_by_level{$level}[0].
|
|---|