more useful options | |
PerlMonks |
Re^3: Code clarification - use of map and $$_by davido (Cardinal) |
on Aug 09, 2016 at 14:56 UTC ( [id://1169408]=note: print w/replies, xml ) | Need Help?? |
Because the list returned by @{$r{$k}} is a list of array references. On each iteration of the map loop one element is passed in from the array, @{$r{$k}}, to $_. That element is a reference to an array. Thus, to act upon its contents, you dereference it. Dave
In Section
Seekers of Perl Wisdom
|
|