which is sometimes context-sensitive? I suppose you could mark a sub context-sensitive if it is for at least one set of parameters, but that might have limited value.sub bizarre { if ($_[0] eq "context-sensitive") { return wantarray?["sna","fu"]:"snafu"; } else { return "bar"; } }
In reply to Re: check for wantarray?
by Crackers2
in thread check for wantarray?
by KurtZ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |