Gunnar Hjalmarsson <> wrote in message news:<mKK0c.50876$>...
> thoin wrote:
> > just stumbeled over a strange behaviour of perl: When trying to
> > retrieve a non-existing value from a perl array, e.g. by saying
> >
> > my $a = [1,2];
> > my $b = $$a[3][0];
> >
> > then $a is modified to [1,2,[]].
>
> Suppose you mean [1,2,undef,[]].
Yes, of course I do mean that
> > Is this a feature I just don't understand or is it really a bug (as
> > I would suppose)?
>
> I think it's called autovivification. One place where it is commented
> on is
>
> perldoc -f exists
Phew, nice to see that it will be fixed in the future. I mean, nice to
see that I was right supposing this behaviour to be kind of wrong.
Thanks a lot for your hint!
Thoin