But causing one reference to a data structure to be the same as another is fairly easy:
The trick is that while variables are in @_ they are passed in by reference. If you don't make copies, then you can modify the passed in values. This API may surprise...sub some_sub { $_[0] = $bar; }
In reply to Re: Re: Re: How to change referent of lexical reference?
by tilly
in thread How to change referent of lexical reference?
by autarch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |