Oh, then just make your sub an lvalue sub like so:
sub my_vec : lvalue { vec($_[0],$_[1],$_[2]) }
Caveat scriptor, I didn't test this at all and I'm sure you need a modernish perl for it to work.
In reply to Re: Re: Re: vec and array parameters
by duff
in thread vec and array parameters
by dragonchild
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |