summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2004-01-25 10:26:51 -0800
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-01-27 21:08:13 +0000
commita3748119a0056e5704588cdf9da3bd98766ce886 (patch)
treef407bc24e96d3d2a4878b230c8dd28ee5fdc7235
parentdcd3d9f503bf19f488f6d829108bdc28a5b42624 (diff)
downloadperl-a3748119a0056e5704588cdf9da3bd98766ce886.tar.gz
Document that the behaviour of my...if... is undefined in perl 5.6.GitLive-maint-5.6
Subject: Whither 5.6.3? Message-ID: <20040126022651.GB1008@efn.org> p4raw-id: //depot/maint-5.6/perl-5.6.2@22233
-rw-r--r--pod/perlsyn.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index aad4efd2f7..9012984f72 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -124,6 +124,13 @@ For C<last>, you have to be more elaborate:
} while $x++ <= $z;
}
+B<NOTE:> The behaviour of a C<my> statement modified with a statement
+modifier conditional or loop construct (e.g. C<my $x if ...>) is
+B<undefined>. The value of the C<my> variable may be C<undef>, any
+previously assigned value, or possibly anything else. Don't rely on
+it. Future versions of perl might do something different from the
+version of perl you try it out on. Here be dragons.
+
=head2 Compound statements
In Perl, a sequence of statements that defines a scope is called a block.