![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Take reference of the return result from a functionby daveola (Acolyte) |
on Feb 21, 2017 at 03:19 UTC ( #1182391=perlquestion: print w/replies, xml ) | Need Help?? |
daveola has asked for the wisdom of the Perl Monks concerning the following question:
Is there a syntax to simply turn the value of something returned from a function into a reference?
For example, I want to return an array reference for an array built by map. Right now I am doing:
I'd prefer something like: I know I could do it by writing another routine or using a library, but I was wondering if there was anything in plain old perl that can accomplish this?
Back to
Seekers of Perl Wisdom
|
|