in reply to turn off strict for production code

To step out your question a little bit... the if programa can be used against both programas and Modules:

use if (1==1), Data::Dumper; #use if (1==0), Data::Dumper; print Dumper({});

Comment out either of the first two lines to see the effect.