summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-13 16:59:22 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-13 16:59:22 +0100
commit229c18ce2bca758e413c5cf4f86e43dac52f4884 (patch)
treef2dcc624292e7061f04bb6116f82e0ec1c8fe756
parente5de85fa00355223fa09334b82445b656ae9eeea (diff)
downloadperl-229c18ce2bca758e413c5cf4f86e43dac52f4884.tar.gz
Document error "Smart matching a non-overloaded object breaks encapsulation"
That error was added in e67b97bd974194ad616acbb7813c5631aacd6be7
-rw-r--r--pod/perldiag.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 03b51504ef..70a432db11 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -3895,6 +3895,12 @@ superfluous.
(W signal) The signal handler named in %SIG doesn't, in fact, exist.
Perhaps you put it into the wrong package?
+=item Smart matching a non-overloaded object breaks encapsulation
+
+(F) You should not use the C<~~> operator on an object that does not
+overload it: Perl refuses to use the object's underlying structure for
+the smart match.
+
=item sort is now a reserved word
(F) An ancient error message that almost nobody ever runs into anymore.