summaryrefslogtreecommitdiff
path: root/pod/perlsyn.pod
diff options
context:
space:
mode:
authorMartien Verbruggen <mgjv@comdyn.com.au>2003-03-15 23:31:47 +1100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-03-21 20:43:55 +0000
commit457b36cb0e1f520a66f69467509302997f8a52c5 (patch)
tree5f165e56749c6471986243ed4a7ae2a6ec31613f /pod/perlsyn.pod
parenta9852f7cb9f92ad2f16959090e68f5c92d1fe0f1 (diff)
downloadperl-457b36cb0e1f520a66f69467509302997f8a52c5.tar.gz
perlsub.pod and perlsyn.pod: better organise scoping info for modifiers
Message-Id: <slrnb750k3.j8t.mgjv@martien.heliotrope.home> p4raw-id: //depot/perl@19043
Diffstat (limited to 'pod/perlsyn.pod')
-rw-r--r--pod/perlsyn.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlsyn.pod b/pod/perlsyn.pod
index 0d81b241c1..16bca2d6b5 100644
--- a/pod/perlsyn.pod
+++ b/pod/perlsyn.pod
@@ -134,6 +134,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.