This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4dcecea
)
perlfaq7: there are no empty packages any more
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 12 Feb 2011 23:00:42 +0000
(15:00 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 12 Feb 2011 23:00:42 +0000
(15:00 -0800)
pod/perlfaq7.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfaq7.pod
b/pod/perlfaq7.pod
index
fbe6dad
..
983825b
100644
(file)
--- 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";
);
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>
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>