diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-02 07:53:51 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-02 07:53:51 +0000 |
commit | db376a245d40f9f81e37632708a9ad2cfc67ef6a (patch) | |
tree | 8c6efaa9d96c8eab8c80c68fe4e15d92aec8f7b4 /lib/Fatal.pm | |
parent | 65e1a3a11dd767e7393f37a7bd811ce587d64985 (diff) | |
download | perl-db376a245d40f9f81e37632708a9ad2cfc67ef6a.tar.gz |
use warnings rather than fiddling with $^W (from Paul Marquess)
p4raw-id: //depot/perl@4954
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; } } |