This will make sure that sub x is called in list context: sub y { [ x() ] } It produces a reference to a array copy of x()'s returned list.
After Compline,
Zaxo
In reply to Re: return a ref to a return value (array) of another sub
by Zaxo
in thread return a ref to a return value (array) of another sub
by telcontar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |