summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-10-06 18:05:45 +0000
committerNicholas Clark <nick@ccl4.org>2006-10-06 18:05:45 +0000
commit4cc0ca1820795147dd27e5805c8227de0ebaace3 (patch)
tree45ed4430c8c15f0cb3ffb4ebd423b55aac016210
parentbf1f174ed265c5c40363f541ae604fad46534c1c (diff)
downloadperl-4cc0ca1820795147dd27e5805c8227de0ebaace3.tar.gz
Don't bother generating the "Operation \"%s\": no method found..."
message text if we're not going to use it. p4raw-id: //depot/perl@28947
-rw-r--r--gv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 0fc0367224..637e82f7cf 100644
--- 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;