summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-23 12:28:53 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-23 12:28:53 +0000
commit718140ec19bbd5ac75685b0182b0f943598db1ee (patch)
treebc61606e7ca810fdcfb246ac45da970848c6ee8c /pod
parent69770769435281d452d003364fc4187da15cc425 (diff)
downloadperl-718140ec19bbd5ac75685b0182b0f943598db1ee.tar.gz
{ my $a; } not warning about being used only once is a something
TO be DOne. p4raw-id: //depot/perl@32716
Diffstat (limited to 'pod')
-rw-r--r--pod/perltodo.pod14
1 files changed, 14 insertions, 0 deletions
diff --git a/pod/perltodo.pod b/pod/perltodo.pod
index f270d6b979..8372b3c947 100644
--- a/pod/perltodo.pod
+++ b/pod/perltodo.pod
@@ -662,6 +662,20 @@ also the warning messages (see L<perllexwarn>, C<warnings.pl>).
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