in reply to Strange behaviour reading from hashref stored in array

You won't create $a[3] if you just

print $a[3];