From: Rafael Garcia-Suarez Date: Thu, 12 Jul 2007 05:51:35 +0000 (+0000) Subject: More terminology updates for warnings X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=00eb3f2b8b380581ce926a5330c21ff590bf4324;p=p5sagit%2Fp5-mst-13.2.git More terminology updates for warnings p4raw-id: //depot/perl@31592 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index b299930..42fcabc 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -9,7 +9,7 @@ desperation): (W) A warning (optional). (D) A deprecation (optional). - (S) A severe warning (default). + (S) A severe warning (enabled by default). (F) A fatal error (trappable). (P) An internal error you should never see (trappable). (X) A very fatal error (nontrappable). @@ -5024,4 +5024,8 @@ Something Very Wrong. =back +=head1 SEE ALSO + +L, L. + =cut diff --git a/pod/perllexwarn.pod b/pod/perllexwarn.pod index bed349f..72370c7 100644 --- a/pod/perllexwarn.pod +++ b/pod/perllexwarn.pod @@ -5,10 +5,12 @@ perllexwarn - Perl Lexical Warnings =head1 DESCRIPTION -The C pragma is a replacement for both the command line -flag B<-w> and the equivalent Perl variable, C<$^W>. +The C 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 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, C or C). 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, L.