Change 32716 by [EMAIL PROTECTED] on 2007/12/23 12:28:53

        { my $a; } not warning about being used only once is a something
        TO be DOne.

Affected files ...

... //depot/perl/pod/perltodo.pod#209 edit

Differences ...

==== //depot/perl/pod/perltodo.pod#209 (text) ====
Index: perl/pod/perltodo.pod
--- perl/pod/perltodo.pod#208~32704~    2007-12-22 09:00:24.000000000 -0800
+++ perl/pod/perltodo.pod       2007-12-23 04:28:53.000000000 -0800
@@ -662,6 +662,20 @@
 These tasks would need C knowledge, and knowledge of how the interpreter works,
 or a willingness to learn.
 
+=head2 lexicals used only once
+
+This warns:
+
+    $ perl -we '$pie = 42'
+    Name "main::pie" used only once: possible typo at -e line 1.
+
+This does not:
+
+    $ perl -we 'my $pie = 42'
+
+Logically all lexicals used only once should warn, if the user asks for
+warnings.
+
 =head2 UTF-8 revamp
 
 The handling of Unicode is unclean in many places. For example, the regexp
End of Patch.

Reply via email to