I'm probably missing something, but isn't that just
sub frobnicate_position { my $obj = defined wantarray ? $_[0]->copy() : $_[0]; ... calculate new position here, ... set $obj->line() and $obj->column() return $obj };
In reply to Re: How to best pass on the context / wantarray?
by BrowserUk
in thread How to best pass on the context / wantarray?
by Corion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |