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


in reply to Use of the => operator

You can hook into Perl's constant parser using overload. See the section on overloading constants.