summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-03-27 14:21:27 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-03-27 14:21:27 -0700
commit48b31689ba1795da72c6fa452be4aed0556b77a8 (patch)
treee12d4ccefd8d044f9e79b0640d47656e5b0777ee
parent370ff23e44afd5d970c19583f13d392c37188c85 (diff)
downloadperl-48b31689ba1795da72c6fa452be4aed0556b77a8.tar.gz
perldelta: Move 2 similar entries about stashes closer
-rw-r--r--pod/perldelta.pod18
1 files changed, 9 insertions, 9 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 12ca3ae5ec..0d39a7f679 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -627,6 +627,15 @@ not make C<defined %hash> false, hence C<defined %hash> is not valid code to
determine whether an arbitrary hash is empty. Instead, use the behaviour
that an empty C<%hash> always returns false in a scalar context.
+=head3 Clearing stashes
+
+Stash list assignment C<%foo:: = ()> used to make the stash anonymous
+temporarily while it was being emptied. Consequently, any of its
+subroutines referenced elsewhere would become anonymous (showing up as
+"(unknown)" in C<caller>). Now they retain their package names, such that
+C<caller> will return the original sub name if there is still a reference
+to its typeglob, or "foo::__ANON__" otherwise [perl #79208].
+
=head3 Dereferencing typeglobs
If you assign a typeglob to a scalar variable:
@@ -667,15 +676,6 @@ assignment has no effect.
See L<http://rt.perl.org/rt3/Public/Bug/Display.html?id=77810> for even
more detail.
-=head3 Clearing stashes
-
-Stash list assignment C<%foo:: = ()> used to make the stash anonymous
-temporarily while it was being emptied. Consequently, any of its
-subroutines referenced elsewhere would become anonymous (showing up as
-"(unknown)" in C<caller>). Now they retain their package names, such that
-C<caller> will return the original sub name if there is still a reference
-to its typeglob, or "foo::__ANON__" otherwise [perl #79208].
-
=head3 Magic variables outside the main package
In previous versions of Perl, magic variables like C<$!>, C<%SIG>, etc. would