aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.default.pl2
-rwxr-xr-xperl/cgi.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.default.pl b/config.default.pl
index 0e7e6bf..13566e9 100644
--- a/config.default.pl
+++ b/config.default.pl
@@ -1,5 +1,7 @@
# always assume anything to do with files or directories is ran at project root
+no warnings 'redefine';
+
use constant {
# If you're using lighttpd, set this to 1
diff --git a/perl/cgi.pl b/perl/cgi.pl
index f8dc7ac..3cbed42 100755
--- a/perl/cgi.pl
+++ b/perl/cgi.pl
@@ -21,10 +21,8 @@ use Data::Dumper;
use Git::Repository;
use lib qw(. ..);
-no warnings 'redefine';
BEGIN { require 'config.default.pl'; }
BEGIN { require 'config.pl'; }
-use warnings 'redefine';
sub info {
warn join(' ', @_);