in reply to return Both ARRAY and SCALAR
I want a function to return a variable with both SCALAR and ARRAY values.
Couldn't you use wantarray to make the method return either a single value (in scalar context) or more values (in list context)?