more useful options | |
PerlMonks |
Re: Preserving Calling Contextby Argel (Prior) |
on Apr 18, 2006 at 22:56 UTC ( [id://544223]=note: print w/replies, xml ) | Need Help?? |
So, it seems like there is a lot of checks to wantarray here. An alternative would be to have a giant if (wantarray) dividing the sub into two implementations. Or you could create a subroutine for each case and then create a wrapper subroutine to determine which one to call.
In Section
Seekers of Perl Wisdom
|
|