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]; }
In reply to Re: Dereference the return result from a function
by stevieb
in thread Take reference of the return result from a function
by daveola
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |