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

esharris has asked for the wisdom of the Perl Monks concerning the following question:

In Class::Std, there is a MODIFY_HASH_ATTRIBUTES subroutine. The Class::Std perldocs show how to append :ATTR( ...) to hash declarations. How does Perl know to apply MODIFY_HASH_ATTRIBUTES to any hash declarations with attributes? Is MODIFY_HASH_ATTRIBUTES a special name to Perl? I want to understand the mechanism that supports the automatic generation of subroutines.