diff options
author | Dave Rolsky <autarch@urth.org> | 2011-10-04 11:32:53 -0500 |
---|---|---|
committer | Dave Rolsky <autarch@urth.org> | 2011-10-04 11:33:13 -0500 |
commit | bcaf8a4b50160c9291e6910567a79cfd2b4af034 (patch) | |
tree | 63c4c7ab465d79cee6ab69aea929ea2edff96eb4 | |
parent | e42a86f0e11f91b8eee790c295d00ba87157989c (diff) | |
download | perl-bcaf8a4b50160c9291e6910567a79cfd2b4af034.tar.gz |
Show that blessed comes from Scalar::Util in code example
-rw-r--r-- | pod/perlobj.pod | 2 |
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; |