If not, chances are that there's already a good library for it on CPAN anyway ;-)
my $ret = &my_sub(@args);
In general there's no need to add the & in front of sub calls. On the contrary it has some effects that aren't desirable most of the time, like disabling prototype checking.
In reply to Re^2: Return a Reference or Array?
by moritz
in thread Return a Reference or Array?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |