Jul 29, 2013, 7:57 AM
Re: [rpaskudniak] wantarray returns 1 when function called in void context
In this situation, I do *NOT* want to execute a return(something); I just want to fall back to the caller with no returned value.That contradicts your opening problem description and code.
It can return a scalar if called in a scalar context, or a transform of the original array
So what do you really want it to do?
Even without an explicit return statement, the sub will return the result of the last statement it executed.
(This post was edited by FishMonger on Jul 29, 2013, 7:58 AM)