in reply to Re: Re: How to change referent of lexical reference?
in thread How to change referent of lexical reference?
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How to change referent of lexical reference?
by autarch (Hermit) on Sep 23, 2003 at 03:40 UTC | |
by tilly (Archbishop) on Sep 23, 2003 at 05:28 UTC |