From 48b31689ba1795da72c6fa452be4aed0556b77a8 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 27 Mar 2011 14:21:27 -0700 Subject: [PATCH] perldelta: Move 2 similar entries about stashes closer --- pod/perldelta.pod | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 12ca3ae..0d39a7f 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -627,6 +627,15 @@ not make C false, hence C 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). Now they retain their package names, such that +C 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 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). Now they retain their package names, such that -C 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 -- 1.8.3.1