$hashref->{typo} #### use constant TYPO => 'typo'; $hashref->{(TYPO)}; # OK $hashref->{(TIPO)}; # Compile-time error, just what you want