in reply to Re: How to enforce void context in Reply?
in thread How to enforce void context in Reply?
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to enforce void context in Reply?
by Anonymous Monk on May 19, 2015 at 11:14 UTC | |
by Anonymous Monk on May 19, 2015 at 12:03 UTC | |
by AnomalousMonk (Archbishop) on May 19, 2015 at 14:46 UTC | |
by Anonymous Monk on May 19, 2015 at 14:55 UTC | |
by AnomalousMonk (Archbishop) on May 19, 2015 at 15:25 UTC | |
|