I don't think this is worrying at all, at least not as worrying as any other use of soft references. Cases 4 and 5 end up creating a symbolic ref. Data::Dumper doesn't look at symbolic refs, although it would show the result of autovivification if you had it dump %main:: instead.
So in truth, autovivification is occuring, but Data::Dumper isn't showing it.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Autovivification and soft refs
by hardburn
in thread Autovivification and soft refs
by calin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |