summaryrefslogtreecommitdiff
path: root/pod/perlobj.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r--pod/perlobj.pod4
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