![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re: How do I check the return value of wantarray?by mreece (Friar) |
on Apr 04, 2007 at 15:35 UTC ( #608302=note: print w/replies, xml ) | Need Help?? |
as this demonstates, wantarray is defined in both scalar and list context (which is why your testc1 fails), but true only in list context.
In Section
Seekers of Perl Wisdom
|
|