Rick Delaney wrote:
> On Sun, Jun 19, 2005 at 11:34:55AM -0000, Piotr Fusik wrote:
> > + $x = 1 for $[ = 0;
> > + pass('optimized assignment to $[ used to segfault in scalar context');
> > + if (($[) = 0) { $x = 1 }
> > + pass('optimized assignment to $[ used to segfault in list context');
> > 
> > Looks like the descriptions of contexts are swapped (i.e. "for" should be
> > "list", "if" should be "scalar").
> 
> No, the first assignment is in scalar context and the second (with
> parentheses) is in list context.  But the results of the assignments are
> taken in list and scalar contexts, respectively, which I suppose is a
> little confusing.  I just took the two test cases presented and
> arbitrarily made one of them list context.  Here's the whole thing again
> with the arbitrariness going the other way.

Thanks, applied as #24901.

Reply via email to