Why are the below hash values not equal ?
use feature 'say'; my $hash; $hash{key1}{key2} = 'val1'; $hash->{key1}->{key2} = 'val2'; say $hash{key1}{key2}; say $hash->{key1}->{key2}; =comment Expected: val2 val2 Actual: val1 val2 =cut
In reply to Hash syntax by mvanle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |