On Wed, May 04, 2005 at 03:18:29PM +0200, Juerd wrote:
: Autrijus Tang skribis 2005-05-04 21:13 (+0800):
: > What should this do, if not infinite loop?
: >     my ($x, $y); $x = \$y; $y = \$x; $x[0] = 1;
: 
: I'm still against any explict scalar dereferencing, so: fail,
: complaining about $x not being an arrayreference (not knowing how
: to handle &postcircumfix:<[ ]>).

Yes, it doesn't immediately deref as an array, so it fails.

Now @$x would infinite loop according to what I said a couple weeks
ago, but maybe that's just the "go down one level" form that was
requested at the time, and @$$x is the "go however many it takes" form.

Larry

Reply via email to