diff options
Diffstat (limited to 'lib/Fatal.pm')
-rw-r--r-- | lib/Fatal.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fatal.pm b/lib/Fatal.pm index 12fef27d61..5b832f6427 100644 --- a/lib/Fatal.pm +++ b/lib/Fatal.pm @@ -116,7 +116,7 @@ EOS no strict 'refs'; # to avoid: Can't use string (...) as a symbol ref ... $code = eval("package $pkg; use Carp; $code"); die if $@; - local($^W) = 0; # to avoid: Subroutine foo redefined ... + no warnings; # to avoid: Subroutine foo redefined ... *{$sub} = $code; } } |