diff --git a/HTTPServerSimple.pl b/HTTPServerSimple.pl index d7c89a93c..36464ab6d 100755 --- a/HTTPServerSimple.pl +++ b/HTTPServerSimple.pl @@ -403,7 +403,7 @@ sub reload for (@reload) { print STDERR __PACKAGE__ . ": Reloading $_\n"; - eval { require $_ }; + eval { no warnings 'redefine'; require $_ }; if ($@) { warn $@; diff --git a/mod_perl.pl b/mod_perl.pl index af6a2cf6c..11c30c4ad 100644 --- a/mod_perl.pl +++ b/mod_perl.pl @@ -171,7 +171,7 @@ sub reload for (@reload) { print STDERR __PACKAGE__ . ": Reloading $_\n"; - eval { require $_ }; + eval { no warnings 'redefine'; require $_ }; if ($@) { warn $@;