summaryrefslogtreecommitdiff
path: root/pod/perllexwarn.pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-07-12 05:51:35 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-07-12 05:51:35 +0000
commit00eb3f2b8b380581ce926a5330c21ff590bf4324 (patch)
tree64d48b4f743d541c8f7e57489823031a0374b8b5 /pod/perllexwarn.pod
parentb0d7393a407a30710ceaf883df5576bb04d744af (diff)
downloadperl-00eb3f2b8b380581ce926a5330c21ff590bf4324.tar.gz
More terminology updates for warnings
p4raw-id: //depot/perl@31592
Diffstat (limited to 'pod/perllexwarn.pod')
-rw-r--r--pod/perllexwarn.pod23
1 files changed, 5 insertions, 18 deletions
diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod
index bed349f9cf..72370c72e4 100644
--- a/pod/perllexwarn.pod
+++ b/pod/perllexwarn.pod
@@ -5,10 +5,12 @@ perllexwarn - Perl Lexical Warnings
=head1 DESCRIPTION
-The C<use warnings> pragma is a replacement for both the command line
-flag B<-w> and the equivalent Perl variable, C<$^W>.
+The C<use warnings> pragma enables to control precisely what warnings are
+to be enabled in which parts of a Perl program. It's a more flexible
+alternative for both the command line flag B<-w> and the equivalent Perl
+variable, C<$^W>.
-The pragma works just like the existing "strict" pragma.
+This pragma works just like the C<strict> pragma.
This means that the scope of the warning pragma is limited to the
enclosing block. It also means that the pragma setting will not
leak across files (via C<use>, C<require> or C<do>). This allows
@@ -514,21 +516,6 @@ a warning.
Notice also that the warning is reported at the line where the object is first
used.
-=head1 TODO
-
- perl5db.pl
- The debugger saves and restores C<$^W> at runtime. I haven't checked
- whether the debugger will still work with the lexical warnings
- patch applied.
-
- diagnostics.pm
- I *think* I've got diagnostics to work with the lexical warnings
- patch, but there were design decisions made in diagnostics to work
- around the limitations of C<$^W>. Now that those limitations are gone,
- the module should be revisited.
-
- document calling the warnings::* functions from XS
-
=head1 SEE ALSO
L<warnings>, L<perldiag>.