diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:00:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 16:00:08 +0000 |
commit | 88d7a19bf96d2396483f674c643f50b1079d8cda (patch) | |
tree | 16bad372bee98d0e72f3642890dca0824c2b21cd /pp_hot.c | |
parent | 02e93a22d20fc9a528c7ba76d142151f565790cd (diff) | |
parent | 1189a94a32ae3258f75f6b7571b7a68e694d4ffe (diff) | |
download | perl-88d7a19bf96d2396483f674c643f50b1079d8cda.tar.gz |
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4140
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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; |