X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/f5e614f21843d4cc6ff931ce9e734273c42248aa..3871c2ef9aa1dfeba4631a17efdbf486012d47a6:/op.c diff --git a/op.c b/op.c index 2c6b675..af1fd08 100644 --- a/op.c +++ b/op.c @@ -4273,7 +4273,7 @@ Perl_newCONSTSUB(pTHX_ HV *stash, char *name, SV *sv) CopSTASH_set(PL_curcop,stash); } - cv = newXS(name, const_sv_xsub, __FILE__); + cv = newXS(name, const_sv_xsub, CopFILE(PL_curcop)); CvXSUBANY(cv).any_ptr = sv; CvCONST_on(cv); sv_setpv((SV*)cv, ""); /* prototype is "" */