in reply to Unusual way of accessing hash values

In the hash example you would get:

Using a hash as a reference is deprecated at ....
in the array example you would get:
Using an array as a reference is deprecated at ...
if you had use warnings (or -w).

/J\

: