summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-04-07 19:34:10 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-04-07 19:34:10 +0000
commit910764e6d406039bd2d888fd1adf2a83fb52d1b5 (patch)
tree8392a858899693f0ae21edbd817f8075fee708f2 /sv.c
parent85d9270e974e9a2b887cbda89ace5a9596044b9a (diff)
downloadperl-910764e6d406039bd2d888fd1adf2a83fb52d1b5.tar.gz
Fully qualify in warning message the name of a subroutine redefined
via glob assignment p4raw-id: //depot/perl@15789
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index 80dc9ea47b..e3b95808f6 100644
--- a/sv.c
+++ b/sv.c
@@ -3839,8 +3839,9 @@ Perl_sv_setsv_flags(pTHX_ SV *dstr, register SV *sstr, I32 flags)
{
Perl_warner(aTHX_ packWARN(WARN_REDEFINE),
CvCONST(cv)
- ? "Constant subroutine %s redefined"
- : "Subroutine %s redefined",
+ ? "Constant subroutine %s::%s redefined"
+ : "Subroutine %s::%s redefined",
+ HvNAME(GvSTASH((GV*)dstr)),
GvENAME((GV*)dstr));
}
}