summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-11-25 20:32:53 +0100
committerYves Orton <demerphq@gmail.com>2022-12-09 18:34:58 +0100
commiteb4b3462b6575a035eb1af5ad290b80393769bdd (patch)
tree828582989043beb4c03b37324ddc5701b61b84be /pod/perldelta.pod
parent10ba1aff86e2ef2d5a2e1a26910c8cc1575bde86 (diff)
downloadperl-eb4b3462b6575a035eb1af5ad290b80393769bdd.tar.gz
pp_ctl.c - handle objects in @INC a bit more gracefully
If an object doesn't have an INC hook then don't call it. Either simply stringify the ref (think overloads), OR, if it is a blessed coderef, then just execute it like it was an unblessed coderef. Also handle when an object is passed as the first argument of the array form of call. Previously this would throw an exception as the first argument on the stack when we call_method() would not be blessed. When this is the scenario we pass in the array as the third argument to the method.
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r--pod/perldelta.pod5
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 5aa97e5cc2..dc7cd8343d 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -210,6 +210,11 @@ and New Warnings
=item *
+L<Object with arguments in @INC does not support a hook method
+ |perldiag/"Object with arguments in @INC does not support a hook method">
+
+=item *
+
XXX L<message|perldiag/"message">
=back