This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1f174
)
Don't bother generating the "Operation \"%s\": no method found..."
author
Nicholas Clark
<nick@ccl4.org>
Fri, 6 Oct 2006 18:05:45 +0000
(18:05 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Fri, 6 Oct 2006 18:05:45 +0000
(18:05 +0000)
message text if we're not going to use it.
p4raw-id: //depot/perl@28947
gv.c
patch
|
blob
|
blame
|
history
diff --git
a/gv.c
b/gv.c
index
0fc0367
..
637e82f
100644
(file)
--- a/
gv.c
+++ b/
gv.c
@@
-1829,6
+1829,9
@@
Perl_amagic_call(pTHX_ SV *left, SV *right, int method, int flags)
notfound = 1; lr = -1;
} else if (cvp && (cv=cvp[nomethod_amg])) {
notfound = 1; lr = 1;
+ } else if ((amtp && amtp->fallback >= AMGfallYES) && !DEBUG_o_TEST) {
+ /* Skip generating the "no method found" message. */
+ return NULL;
} else {
SV *msg;
if (off==-1) off=method;