exists doesn't autovivify.
>perl -le "my %hash; exists($hash{foo}); print scalar %hash" 0
Dereferencing (->) does.
>perl -le "$hash->{foo}; print $hash ? 1 : 0" 1
In reply to Re: Why does exists cause autovivication?
by ikegami
in thread Why does exists cause autovivication?
by Argel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |