in reply to RE: RE: Re: Dreaming of Post Interpolation (*)
in thread Dreaming of Post Interpolation
Will that output$n=1; #we have no idea which variables should be cascaded. $subref=sub { return $n *3 }; print &$subref, "\n"; $n=2; print &$subref, "\n";
Because $m is altered by $n, and thus when we change $n, we recalc $m, which is in turn set by $n, so we recalc....use Cascade; cascade $n; cascade $m; $n=1; $m=$n; $n=$m+1;
But I guess this isn't much different from screwing your reference count by doing a $a=\$a (except of course that that doesn't hang).
All speculation anyway, since I don't believe that there is any way to find what lvalue is affected by a variable reference.
|
---|