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)?
In reply to Re: return Both ARRAY and SCALAR
by almut
in thread return Both ARRAY and SCALAR
by FutureBoyNil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |