diff options
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r-- | pod/perlobj.pod | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 8ae7c29430..34a5332aa1 100644 --- a/pod/perlobj.pod +++ b/pod/perlobj.pod @@ -182,7 +182,7 @@ examined when Perl does method resolution, which we will cover later. It is possible to manually set C<@ISA>, and you may see this in older Perl code. Much older code also uses the L<base> pragma. For new code, we recommend that you use the L<parent> pragma to declare your parents. -This pragma will take care of setting C<@ISA>. It will also load the +This pragma will take care of setting C<@ISA>. It will also load the parent classes and make sure that the package doesn't inherit from itself. @@ -232,7 +232,7 @@ object (or class name), and the right hand side is the method name. my $pod = File->new( 'perlobj.pod', $data ); $pod->save(); -The C<< -> >> syntax is also used when dereferencing a reference. It +The C<< -> >> syntax is also used when dereferencing a reference. It looks like the same operator, but these are two different operations. When you call a method, the thing on the left side of the arrow is @@ -685,8 +685,8 @@ thing as well: =head3 Indirect Object Syntax X<indirect object> -B<Outside of the file handle case, use of this syntax is discouraged -as it can confuse the Perl interpreter. See below for more details.> +B<Outside of the file handle case, use of this syntax is discouraged as +it can confuse the Perl interpreter. See below for more details.> Perl suports another method invocation syntax called "indirect object" notation. This syntax is called "indirect" because the method comes @@ -875,7 +875,7 @@ you want to refer to do it without a package name prefix under C<strict Without the C<our $AUTOLOAD> declaration, this code will not compile under the L<strict> pragma. -As the comment says, this is not a good way to implement accessors. +As the comment says, this is not a good way to implement accessors. It's slow and too clever by far. However, you may see this as a way to provide accessors in older Perl code. See L<perlootut> for recommendations on OO coding in Perl. |