In Perl, some people will do funky stuff like this:
package FooBar;
use constant {
CONFIG_VALUE_A = 'foo',
CONFIG_VALUE_B = 'bar',
};
If I want to override those values (e.g.: while running your application on my system, or building a test suite)
I have to use a construct like this:
*{FOOBAR::CONFIG_VALUE_A} = sub { 'my new foo' };
(
Read more... )