summaryrefslogtreecommitdiff
path: root/pp_hot.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-09-13 16:00:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-13 16:00:08 +0000
commit88d7a19bf96d2396483f674c643f50b1079d8cda (patch)
tree16bad372bee98d0e72f3642890dca0824c2b21cd /pp_hot.c
parent02e93a22d20fc9a528c7ba76d142151f565790cd (diff)
parent1189a94a32ae3258f75f6b7571b7a68e694d4ffe (diff)
downloadperl-88d7a19bf96d2396483f674c643f50b1079d8cda.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4140
Diffstat (limited to 'pp_hot.c')
-rw-r--r--pp_hot.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/pp_hot.c b/pp_hot.c
index b4e7223f7c..e75ec30258 100644
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -164,8 +164,21 @@ PP(pp_concat)
s = SvPV_force(TARG, len);
}
s = SvPV(right,len);
- if (SvOK(TARG))
+ if (SvOK(TARG)) {
+#if defined(PERL_Y2KWARN)
+ if ((SvIOK(right) || SvNOK(right)) && ckWARN(WARN_MISC)) {
+ STRLEN n;
+ char *s = SvPV(TARG,n);
+ if (n >= 2 && s[n-2] == '1' && s[n-1] == '9'
+ && (n == 2 || !isDIGIT(s[n-3])))
+ {
+ Perl_warner(aTHX_ WARN_MISC, "Possible Y2K bug: %s",
+ "about to append an integer to '19'");
+ }
+ }
+#endif
sv_catpvn(TARG,s,len);
+ }
else
sv_setpvn(TARG,s,len); /* suppress warning */
SETTARG;