summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2004-03-04 20:33:44 +0000
committerDave Mitchell <davem@fdisolutions.com>2004-03-04 20:33:44 +0000
commit722969e2558105c9a60bf5758cf8dd5f3eedca60 (patch)
tree8a1dcf7ce8f875ec05b23ec49b9180a3115ce15a /pod/perldiag.pod
parent6cd6e77025a610090e5c95f9e958636e90f647bd (diff)
downloadperl-722969e2558105c9a60bf5758cf8dd5f3eedca60.tar.gz
retract 22328 and 22332: deprecation warning for my $x if foo
p4raw-id: //depot/perl@22433
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod18
1 files changed, 0 insertions, 18 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index a2c7348b12..38be87a625 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -4282,24 +4282,6 @@ old way has bad side effects.
it already went past any symlink you are presumably trying to look for.
The operation returned C<undef>. Use a filename instead.
-=item Deprecated use of my() in conditional
-
-(D deprecated) You used a C<my> declaration within a conditional
-expression of some sort, such as C<my $x=1 if foo> or C<foo && (my $x = 1)>.
-Perl's run-time behaviour in such constructs is currently undefined, but
-typically causes the variable not be be cleared at the end of scope and
-to retain its old value the next time the scope is entered. Some people
-have been making use of this "feature" to implement a type of static
-variable. We intend to change this behaviour in a future release, so
-don't rely on it.
-
-To work around this warning, move the declaration outside the expression,
-eg
-
- my $x;
- $x = 1 if foo;
-
-
=item Use of "package" with no arguments is deprecated
(D deprecated) You used the C<package> keyword without specifying a package