This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix some bugs in the example code for perlootut
authorDave Rolsky <autarch@urth.org>
Thu, 15 Sep 2011 14:03:09 +0000 (09:03 -0500)
committerDave Rolsky <autarch@urth.org>
Thu, 15 Sep 2011 14:03:18 +0000 (09:03 -0500)
pod/perlootut.pod

index f42dec7..52070bf 100644 (file)
@@ -148,7 +148,7 @@ argument:
       print "This file is at ", $self->path, "\n";
   }
 
-  $larry->print_path;
+  $file->print_info;
   # The file is at /etc/hostname
 
 What makes a method special is I<how it's called>. The arrow operator
@@ -166,7 +166,7 @@ name or an object. We can also pass additional arguments to the method:
       print $prefix, ", ", $self->path, "\n";
   }
 
-  $larry->print_info("The file is located at ");
+  $file->print_info("The file is located at ");
   # The file is located at /etc/hostname
 
 =head2 Attributes