From 3f9ec86148ce5619d909c108083f27a01c56adee Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Mon, 22 Jun 2015 10:57:04 -0400 Subject: [PATCH] do not try printing undef --- pod/perlobj.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlobj.pod b/pod/perlobj.pod index fc8770a8dc90..6513d8a86692 100644 --- a/pod/perlobj.pod +++ b/pod/perlobj.pod @@ -148,10 +148,10 @@ demonstrated with this code: my $bar = $foo; bless $foo, 'Class'; - print blessed( $bar ); # prints "Class" + print blessed( $bar ) // 'not blessed'; # prints "Class" $bar = "some other value"; - print blessed( $bar ); # prints undef + print blessed( $bar ) // 'not blessed'; # prints "not blessed" When we call C on a variable, we are actually blessing the underlying data structure that the variable refers to. We are not