Parens don't create lists*.
is the same asreturn wantarray ? ('value') : 'value';
which is the same asreturn wantarray ? 'value' : 'value';
return 'value';
* — Except on the LHS of an assignment (indirectly) and inside of a list literal.
In reply to Re: Unit testing, context and wantarray
by ikegami
in thread Unit testing, context and wantarray
by mikeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |