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
[perl5.git] / 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;