On 6 June 2010 14:37, Shawn H Corey <shawnhco...@gmail.com> wrote: > On 10-06-06 09:06 AM, Chas. Owens wrote: >> >> But that is not the problem; autovivification will create the references: >> >> perl -MData::Dumper -le '$c->[0]{a}; print Dumper $c' >> > > But that is the problem. Autovivification should not happen for r-values, > only l-values.
I take it you mean it should only happen when you write to a location ($c->[3] = 'foo') not when you read from a location (print $c->[3]) ? I would think that $c->[0]{a} is an lvalue by most definitions - it's a value which can be written to. It's an lvalue even when on the right side of an assignment. Phil -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/