diff options
author | brian d foy <bdfoy@cpan.org> | 2010-01-13 17:19:25 +0100 |
---|---|---|
committer | brian d foy <bdfoy@cpan.org> | 2010-01-13 17:19:25 +0100 |
commit | ac0367249e563330db9a9a04f778eae30defbab0 (patch) | |
tree | 7f99b67d93a06be0fb7aa702db8dfd4e24ff501d /pod/perlobj.pod | |
parent | 8d2e243f5816f9d2c4247f962523e4220e4a9ce8 (diff) | |
download | perl-ac0367249e563330db9a9a04f778eae30defbab0.tar.gz |
* Em dash cleanup in pod/
I looked at all the instances of spaces around -- and in most cases
converted the sentences to use more appropriate punctuation. In
general, the -- in the perl docs seem to be there only to make
really complicated and really long sentences.
I didn't look at the closed em-dashes. They probably have the same
sentence-complexity problem.
I left some open em-dashes in place. Those are the ones used in
lists.
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r-- | pod/perlobj.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlobj.pod b/pod/perlobj.pod index 6d335e5410..fdecd84a68 100644 --- a/pod/perlobj.pod +++ b/pod/perlobj.pod @@ -350,8 +350,8 @@ Usually Perl gets it right, but when it doesn't you get a function call compiled as a method, or vice versa. This can introduce subtle bugs that are hard to detect. -For example, a call to a method C<new> in indirect notation -- as C++ -programmers are wont to make -- can be miscompiled into a subroutine +For example, a call to a method C<new> in indirect notation (as C++ +programmers are wont to make) can be miscompiled into a subroutine call if there's already a C<new> function in scope. You'd end up calling the current package's C<new> as a subroutine, rather than the desired class's method. The compiler tries to cheat by remembering |