diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2003-04-30 22:17:38 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-05-21 21:03:04 +0000 |
commit | ddeae0f14c58a5f1101e1a8c75be3b67f60cf6fd (patch) | |
tree | 54bc58400af97966b7d659a45dba11fee10885be /pod/perldiag.pod | |
parent | 7925835c4310c3d10b784fcb09926648dc49c600 (diff) | |
download | perl-ddeae0f14c58a5f1101e1a8c75be3b67f60cf6fd.tar.gz |
New warning "Useless localization of %s", based on
Subject: [PATCH] new warning "Useless localization of %s is deprecated"
Message-ID: <20030430201738.GA22054@fdgroup.com>
The proposed patch added this warning in the 'deprecated' category ;
I think this category is for things that exist and will be removed,
rather than for things that don't exist and that will maybe be added.
p4raw-id: //depot/perl@19588
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r-- | pod/perldiag.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 3cd763b57e..6e7543d566 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4050,6 +4050,12 @@ must be written as The <-- HERE shows in the regular expression about where the problem was discovered. See L<perlre>. +=item Useless localization of %s + +(W syntax) The localization of lvalues such as C<local($x=10)> is +legal, but in fact the local() currently has no effect. This may change at +some point in the future, but in the meantime such code is discouraged. + =item Useless use of %s in void context (W void) You did something without a side effect in a context that does |