in reply to Re: check for wantarray?
in thread check for wantarray?
The answer is that only by running the program you can answer your question.
OK, but how can I answer this by running???
I'm calling different subs in list context. Some return a reference
of an array, others return an array by list.
How can I distinguish both if the the array has only one element,
a reference of an array?
Even calling both a second time in scalar context doesn't help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: check for wantarray?
by ikegami (Patriarch) on Dec 26, 2008 at 12:02 UTC | |
|
Re^3: check for wantarray?
by bageler (Hermit) on Dec 27, 2008 at 00:46 UTC | |
by ikegami (Patriarch) on Dec 27, 2008 at 01:30 UTC | |
|
Re^3: check for wantarray?
by CountZero (Bishop) on Dec 28, 2008 at 14:48 UTC | |
by LanX (Saint) on Dec 29, 2008 at 13:29 UTC | |
by CountZero (Bishop) on Dec 29, 2008 at 17:14 UTC |