diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-07 01:22:23 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-07 01:22:23 +0000 |
commit | 3d0ae7ba72551d8af1ecbcfb8a67d9a77f1cf195 (patch) | |
tree | 3791c1935999d98ab2f66662f94e4b30d48398c6 /lib | |
parent | be26652545762cccb4c0118f022cf9d0ec20cf93 (diff) | |
download | perl-3d0ae7ba72551d8af1ecbcfb8a67d9a77f1cf195.tar.gz |
avoid warnings in diagnostics.pm; pod tweaks (from Peter Prymmer
and Tom Phoenix)
p4raw-id: //depot/perl@6077
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/diagnostics.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/diagnostics.pm b/lib/diagnostics.pm index 8c7aedc09a..884ea3ca65 100755 --- a/lib/diagnostics.pm +++ b/lib/diagnostics.pm @@ -44,7 +44,7 @@ These still go out B<STDERR>. Due to the interaction between runtime and compiletime issues, and because it's probably not a very good idea anyway, you may not use C<no diagnostics> to turn them off at compiletime. -However, you may control there behaviour at runtime using the +However, you may control their behaviour at runtime using the disable() and enable() methods to turn them off and on respectively. The B<-verbose> flag first prints out the L<perldiag> introduction before @@ -432,8 +432,8 @@ sub enable { &import } sub disable { shift; return unless $SIG{__WARN__} eq \&warn_trap; - $SIG{__WARN__} = $oldwarn; - $SIG{__DIE__} = $olddie; + $SIG{__WARN__} = $oldwarn || ''; + $SIG{__DIE__} = $olddie || ''; } sub warn_trap { |