http://www.perlmonks.org?node_id=472837


in reply to Should I use Fields, InsideOuts, or Properties?

Instead of

$hashref->{typo}

do this:

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