In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/f6fe275c937ceb508cdcfd033ce162e1fa01989e?hp=a53d211fc419ac5ad57fec64f3d43f351aea51f3>
- Log ----------------------------------------------------------------- commit f6fe275c937ceb508cdcfd033ce162e1fa01989e Author: Dave Rolsky <[email protected]> Date: Sun Feb 17 19:43:42 2013 -0600 Remove two spaces after periods to keep the document consistent M pod/perlobj.pod commit 3139bffb2f1cfb088f4296f6bc082aff9550289b Author: Dave Rolsky <[email protected]> Date: Sun Feb 17 19:38:34 2013 -0600 Remove two superfluous commas in perlobj M pod/perlobj.pod ----------------------------------------------------------------------- Summary of changes: pod/perlobj.pod | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 448fcfe..34a5332 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. @@ -911,7 +911,7 @@ then the error will change the value of C<$@>. Because C<DESTROY> methods can be called at any time, you should localize any global variables you might update in your C<DESTROY>. In particular, if you use C<eval {}> you should localize C<$@>, and if you -use C<system> or backticks, you should localize C<$?>. +use C<system> or backticks you should localize C<$?>. If you define an C<AUTOLOAD> in your class, then Perl will call your C<AUTOLOAD> to handle the C<DESTROY> method. You can prevent this by -- Perl5 Master Repository
