in reply to Re: Import constants as scalar instead of bareword sub
in thread Import constants as scalar instead of bareword sub

People are constantly (pun intended) being bitten by bareword subs not getting interpolated. A classic example is when they are used as a hash key, or on the left side of the => operator. And I often need them interpolated in strings, like SQL statements, which is really ugly with subs. I never use subs as constants for this reason.
  • Comment on Re^2: Import constants as scalar instead of bareword sub