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:
e42a86f
)
Show that blessed comes from Scalar::Util in code example
author
Dave Rolsky
<autarch@urth.org>
Tue, 4 Oct 2011 16:32:53 +0000
(11:32 -0500)
committer
Dave Rolsky
<autarch@urth.org>
Tue, 4 Oct 2011 16:33:13 +0000
(11:33 -0500)
pod/perlobj.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlobj.pod
b/pod/perlobj.pod
index
0280c62
..
1eaeacd
100644
(file)
--- a/
pod/perlobj.pod
+++ b/
pod/perlobj.pod
@@
-142,6
+142,8
@@
that the variable stores; we are blessing the thing that the variable
refers to (sometimes known as the I<referent>). This is best
demonstrated with this code:
+ use Scalar::Util 'blessed';
+
my $foo = {};
my $bar = $foo;