How do the caller tell if S returned a scalar or an array?
Perl subs can only return a list of scalars. They cannot return arrays.
So you're asking how to determine if the value returned by S originated in an array or not. That's insane. What problem are you actually trying to solve?
In reply to Re: Detecting type of output from subs
by ikegami
in thread Detecting type of output from subs
by mogul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |