in reply to Re^5: Why does exists cause autovivication?
in thread Why does exists cause autovivication?
So, using my original example . . .
next LASTLOG unless exists $user_by_uid{$uid}->{$host};
. . . what does 'exists' receive? Has $user_by_uid{$uid} already been autovivified? Or does it get autovivified within the code for 'exists'? Or some intermediate phase (e.g. code that handles passing parameters to subroutines)? Where "code" refers to the code used to implement perl.
Update: Wanted to add that I apologize for any confusion. I just find it curious that in the process of testing if something exists something may be created. It seems very counter-intuitive (even if it does make sense in the broader context of dereferencing and autovivication).
And Happy New Year!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Why does exists cause autovivication?
by demerphq (Chancellor) on Jan 02, 2008 at 11:01 UTC | |
by Argel (Prior) on Jan 02, 2008 at 20:45 UTC | |
by shmem (Chancellor) on Jan 02, 2008 at 21:31 UTC |