summaryrefslogtreecommitdiff
path: root/pod/perlsub.pod
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2002-05-26 15:15:42 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-26 15:23:32 +0000
commitfd5a896ab6e0f1e056d0f4748a23c9379c27a3ae (patch)
treeb693677e994c15b67933dbd7abe53dd4417a6f33 /pod/perlsub.pod
parent0853f1729f6d8a9e9b198ae1cf6f9b5fe7087000 (diff)
downloadperl-fd5a896ab6e0f1e056d0f4748a23c9379c27a3ae.tar.gz
docs for broken local(%tied) behaviour
Message-ID: <20020526141542.B18527@fdgroup.com> p4raw-id: //depot/perl@16798
Diffstat (limited to 'pod/perlsub.pod')
-rw-r--r--pod/perlsub.pod7
1 files changed, 7 insertions, 0 deletions
diff --git a/pod/perlsub.pod b/pod/perlsub.pod
index 7bee99959d..2b33bd89eb 100644
--- a/pod/perlsub.pod
+++ b/pod/perlsub.pod
@@ -563,6 +563,13 @@ hash to some other implementation:
}
[..%ahash back to its initial tied self again..]
+B<WARNING> The code example above does not currently work as described.
+This will be fixed in a future release of Perl; in the meantime, avoid
+code that relies on any particular behaviour of localising tied arrays
+or hashes (localising individual elements is still okay).
+See L<perldelta/"Localising Tied Arrays and Hashes Is Broken"> for more
+details.
+
As another example, a custom implementation of C<%ENV> might look
like this: