summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-07-18 22:30:52 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-07-18 22:30:52 -0700
commit95f7e41f60129c14cd75136c4109bb686ac0141b (patch)
tree91a871f20d503c8850f3c69aedadd238ad17f2ad /pod
parentf0b90de1127cfd7f88a667aff4553d624d6e451d (diff)
downloadperl-95f7e41f60129c14cd75136c4109bb686ac0141b.tar.gz
[perl #94984] Remove prototypes for infix ops
This commit makes prototype("CORE::$_") return undef for these infix ops, instead of the prototype (or error) shown here: and () cmp Error: Cannot find an op number for cmp eq ($$) ge ($$) gt ($$) le ($$) lt ($$) ne ($$) or () x Error: Cannot find an op number for x xor ($$) Those prototypes are not actually correct, and dying for what are real Perl keywords is just mean.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index e0414082a3..fce51f89de 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -696,6 +696,12 @@ like C<time>.
=item *
+C<prototype> now returns C<undef> for all overridable infix operators. It
+used to return incorrect prototypes for some and die for others
+[perl #94984].
+
+=item *
+
A bug affecting lvalue context propagation through nested lvalue subroutine
calls has been fixed. Previously, returning a value in nested rvalue
context would be treated as lvalue context by the inner subroutine call,