In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/9b03c0a2763ac65c27fbda052b034db71849f461?hp=a5547419d5b6611afb483a3a32dc19fa18b2f172>
- Log ----------------------------------------------------------------- commit 9b03c0a2763ac65c27fbda052b034db71849f461 Author: Father Chrysostomos <[email protected]> Date: Sat Feb 12 15:00:42 2011 -0800 perlfaq7: there are no empty packages any more M pod/perlfaq7.pod commit 4dcecea45752c0731d7846d1e7c8147f6c96338f Author: Father Chrysostomos <[email protected]> Date: Sat Feb 12 14:54:17 2011 -0800 perldiag: typos M pod/perldiag.pod ----------------------------------------------------------------------- Summary of changes: pod/perldiag.pod | 8 ++++---- pod/perlfaq7.pod | 6 ++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 94bb0d1..1f0c069 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -437,7 +437,7 @@ plugin API. (S malloc) An internal routine called realloc() on something that had never been malloc()ed in the first place. Mandatory, but can be disabled -by setting environment variable C<PERL_BADFREE> to 1. +by setting the environment variable C<PERL_BADFREE> to 1. =item Bad symbol for array @@ -524,7 +524,7 @@ check the return value of your socket() call? See L<perlfunc/bind>. =item binmode() on closed filehandle %s (W unopened) You tried binmode() on a filehandle that was never opened. -Check you control flow and number of arguments. +Check your control flow and number of arguments. =item Bit vector size > 32 non-portable @@ -533,7 +533,7 @@ Check you control flow and number of arguments. =item Bizarre copy of %s in %s (P) Perl detected an attempt to copy an internal value that is not -copyable. +copiable. =item Buffer overflow in prime_env_iter: %s @@ -579,7 +579,7 @@ from that type of reference to a typeglob. =item Cannot copy to %s in %s (P) Perl detected an attempt to copy a value to an internal type that cannot -be directly assigned not. +be directly assigned to. =item Cannot find encoding "%s" diff --git a/pod/perlfaq7.pod b/pod/perlfaq7.pod index fbe6dad..983825b 100644 --- a/pod/perlfaq7.pod +++ b/pod/perlfaq7.pod @@ -831,10 +831,8 @@ diagnostics as C<Carp> does, use the C<caller> built-in: print "I was called from package $package\n"; ); -By default, your program starts in package C<main>, so you should -always be in some package unless someone uses the C<package> built-in -with no namespace. See the C<package> entry in L<perlfunc> for the -details of empty packages. +By default, your program starts in package C<main>, so you will +always be in some package. This is different from finding out the package an object is blessed into, which might not be the current package. For that, use C<blessed> -- Perl5 Master Repository
