Change 33787 by [EMAIL PROTECTED] on 2008/05/04 15:35:54
Document ~~ behaviour change with objects in perldelta
Affected files ...
... //depot/maint-5.10/perl/pod/perl5101delta.pod#4 edit
Differences ...
==== //depot/maint-5.10/perl/pod/perl5101delta.pod#4 (text) ====
Index: perl/pod/perl5101delta.pod
--- perl/pod/perl5101delta.pod#3~33786~ 2008-05-04 06:05:26.000000000 -0700
+++ perl/pod/perl5101delta.pod 2008-05-04 08:35:54.000000000 -0700
@@ -20,6 +20,13 @@
The semantics of C<use feature :5.10*> have changes slightly.
See L<"Modules and Pragmata"> for more information.
+=item *
+
+It is now a run-time error to use the smart match operator C<~~>
+with an object that has no overload defined for it. (This way
+C<~~> will not break encapsulation by matching against the
+object's internal representation as a reference.)
+
=back
End of Patch.