This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Show that blessed comes from Scalar::Util in code example
authorDave Rolsky <autarch@urth.org>
Tue, 4 Oct 2011 16:32:53 +0000 (11:32 -0500)
committerDave Rolsky <autarch@urth.org>
Tue, 4 Oct 2011 16:33:13 +0000 (11:33 -0500)
pod/perlobj.pod

index 0280c62..1eaeacd 100644 (file)
@@ -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;