I have a Perl module that I have declared some constants:
use constant BASE_PATH => "/data/monitor/";
In live operation the constant will never change but I wish to be able to modify it in my unit tests, e.g. to set it to ~/project/testdata/. Is there a way do do this without having to use "non-constants"?
Could I possibly use Test::MockObject on the constant.pm?