in reply to
wantarray like wanthash
Nothing built-in, because it's really just telling you whether the sub was called in scalar, list, or void context.
Look at
Want
for a module that gives you more contexts.
Caution:
Contents may have been coded under pressure.
Comment on
Re: wantarray like wanthash
In Section
Seekers of Perl Wisdom