in reply to Re^2: Code clarification - use of map and $$_
in thread Code clarification - use of map and $$_

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