in reply to How to change referent of lexical reference?
void
substitute_ref(ref1, ref2)
SV* ref1
SV* ref2;
PPCODE:
sv_unref(ref1);
ref1 = ref2;
Yep, it's that simple. Still, I wish I could do it from pure Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to change referent of lexical reference?
by autarch (Hermit) on Oct 04, 2003 at 18:53 UTC |