diff --git a/tred_refactored/tredlib/TrEd/Macros.pm b/tred_refactored/tredlib/TrEd/Macros.pm index dce22cc21..4e811291f 100644 --- a/tred_refactored/tredlib/TrEd/Macros.pm +++ b/tred_refactored/tredlib/TrEd/Macros.pm @@ -929,7 +929,8 @@ sub initialize_macros { my $utf = ($useEncoding) ? "use utf8;\n" : q{}; my $macros = q{}; $macros .= 'use strict;' if $strict; - $macros .= "use warnings; no warnings 'redefine';" if $warnings; + $macros .= 'use warnings;' if $warnings; + $macros .= 'no warnings "redefine";'; $macros .= "{\n" . $utf