if (wantarray()) { # list context } elsif (defined wantarray()) { # scalar context } else { # void context }
In reply to Re: Checking return context, beyond wantarray()
by mifflin
in thread Checking return context, beyond wantarray()
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |