in reply to
Checking return context, beyond wantarray()
wantarray returns
undef
value in void context (your CASE 2)
true
in list context
defined false
in scalar context
see
perldoc -f wantarray
Comment on
Re: Checking return context, beyond wantarray()
In Section
Seekers of Perl Wisdom