in reply to Why is this not autovivifying?
Autovivification happens in an lvalue context, but you're using it only as an rvalue in the else branch of your accessors.
Update: And just to be (more :) pedantic, this isn't strictly speaking autovivification that you're expecting (that's automatically creating a reference to the proper data type when undef is used in an lvalue context). What you're seeing is access to a non-existent hash slot not creating an entry in that slot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why is this not autovivifying?
by blahblah (Friar) on Apr 02, 2007 at 15:47 UTC | |
|
Re^2: Why is this not autovivifying?
by ikegami (Patriarch) on Apr 03, 2007 at 01:06 UTC | |
by Fletch (Bishop) on Apr 03, 2007 at 13:21 UTC |