Description
Perl code can define constants whose values are calculated only when needed. It is useful for modules that want constant-like APIs without paying startup cost for expensive values.
Deferred constants can make initialization behavior less obvious. Document side effects and error paths if the calculation touches files, environment, or external state.