in reply to Detecting type of output from subs
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting type of output from subs
by mogul (Novice) on Dec 24, 2010 at 18:53 UTC | |
by chromatic (Archbishop) on Dec 24, 2010 at 19:24 UTC | |
by ikegami (Patriarch) on Dec 24, 2010 at 19:06 UTC |