As noted in wantarray:
return unless defined wantarray; # don't bother doing more my @a = complex_calculation(); return wantarray ? @a : "@a";
Perhaps the OP is using a function that uses that strategy.
In reply to Re^2: How to enforce void context in Reply?
by Anonymous Monk
in thread How to enforce void context in Reply?
by docdurdee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |