in reply to Re^7: Why does exists cause autovivication?
in thread Why does exists cause autovivication?
next unless exists $user_by_uid{$uid}->{$host};
more like the following:
$href = defined $user_by_uid{$uid} ? $user_by_uid{$uid} : {}; #Fake au +toviv next unless exists $href->{$host};
Or would it be more like the following, using your example code?
next unless my_fake_exists $user_by_uid{$uid}, $host;
In other words, since there is no short-circuit evaluation to avoid the -> in my original example does that mean the autoviv occurs before anything is passed in to 'exists'?
Thanks very much for taking time to respond and hope you had a Happy New Year!!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Why does exists cause autovivication?
by shmem (Chancellor) on Jan 02, 2008 at 21:31 UTC |