in reply to
Checking return context, beyond wantarray()
wantarray will return undef if the function is called in void context, when the caller is not expecting a value.
Comment on
Re: Checking return context, beyond wantarray()
In Section
Seekers of Perl Wisdom