in reply to How can I send a "transposed slice" of an array of hashes and by extension an array of arrays, or hash of hashes to a subroutine

References are just scalars, you can easily share a reference to a heavy data structure with negligible costs.

I'd say just share \@Subscription with your sub and let it browse your data there instead of a costly copy.

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re: How can I send a "transposed slice" of an array of hashes and by extension an array of arrays, or hash of hashes to a subroutine
  • Download Code