http://www.perlmonks.org?node_id=1182392


in reply to Take reference of the return result from a function

return [ map { ... } @somearray ];

Replies are listed 'Best First'.
Re^2: Dereference the return result from a function
by daveola (Sexton) on Feb 21, 2017 at 08:35 UTC
    That would be what I was looking for - I'm surprised I didn't think to just construct the array reference like that, that's pretty much exactly what I wanted.