Autovivification. It's not the third line that causes the key to appear in the hash, but the second. The keys function is just letting you know that it's there.
In reply to Re: puzzling behaviour of keys function
by duff
in thread puzzling behaviour of keys function
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |