Comment
Comment by draegtun
Yes (de)referencing can be a PITA sometimes but you've probably forgotten that your example code could have been better written like this:
And if `hash1` was a hash (instead of a hashref) then it's just this:
The `%{}` de-reference you mention later is only when you have an operation that requires a hash, for eg:
And for kstrauser example later in Python...
the equivalent in Perl would be...
I find having {} & [] as lookup keys for their types is not only more explicit but also safer/correct.