summaryrefslogtreecommitdiff
path: root/pod/perlobj.pod
diff options
context:
space:
mode:
authorDave Rolsky <autarch@urth.org>2011-10-04 11:32:53 -0500
committerDave Rolsky <autarch@urth.org>2011-10-04 11:33:13 -0500
commitbcaf8a4b50160c9291e6910567a79cfd2b4af034 (patch)
tree63c4c7ab465d79cee6ab69aea929ea2edff96eb4 /pod/perlobj.pod
parente42a86f0e11f91b8eee790c295d00ba87157989c (diff)
downloadperl-bcaf8a4b50160c9291e6910567a79cfd2b4af034.tar.gz
Show that blessed comes from Scalar::Util in code example
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r--pod/perlobj.pod2
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/perlobj.pod b/pod/perlobj.pod
index 0280c62be4..1eaeacdd13 100644
--- 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;