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

As tybalt89 stated, your request doesn't quite match your examples, and he's shown how to return a reference. Here's a way to dereference an array reference returned from a sub, using the circumfix operator:

my @derefed = @{ blah() }; sub blah { return [1, 2, 3]; }