diff options
author | Paul Marquess <paul.marquess@btinternet.com> | 2001-10-14 12:25:08 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-10-14 13:48:30 +0000 |
commit | 08540116c788d6f1e67757a00e334989e55f0cfc (patch) | |
tree | 0c3f283bba7cebb41bd1e33b458dacccf25cc837 /pod/perllexwarn.pod | |
parent | 31022a5a11db70290d5b3f56cd0dc18a4dd805d8 (diff) | |
download | perl-08540116c788d6f1e67757a00e334989e55f0cfc.tar.gz |
Fix scoping problem with FATAL warnings
Message-ID: <AIEAJICLCBDNAAOLLOKLCEFDDCAA.Paul_Marquess@Yahoo.co.uk>
p4raw-id: //depot/perl@12434
Diffstat (limited to 'pod/perllexwarn.pod')
-rw-r--r-- | pod/perllexwarn.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod index 450838737c..cd76f3af40 100644 --- a/pod/perllexwarn.pod +++ b/pod/perllexwarn.pod @@ -342,6 +342,12 @@ The scope where C<length> is used has escalated the C<void> warnings category into a fatal error, so the program terminates immediately it encounters the warning. +To explicitly disable a "FATAL" warning you just disable the warning it is +associated with. So, for example, to disable the "void" warning in the +example above, either of these will do the trick: + + no warnings qw(void); + no warnings FATAL => qw(void); =head2 Reporting Warnings from a Module |