This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Concatenate some string constants
authorNicholas Clark <nick@ccl4.org>
Sat, 1 Jan 2005 21:34:52 +0000 (21:34 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 1 Jan 2005 21:34:52 +0000 (21:34 +0000)
p4raw-id: //depot/perl@23728

toke.c

diff --git a/toke.c b/toke.c
index 2e652e4..8832d08 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -2631,8 +2631,8 @@ Perl_yylex(pTHX)
                    PL_doextract = FALSE;
                }
                if (!PL_in_eval && (PL_minus_n || PL_minus_p)) {
-                   sv_setpv(PL_linestr,PL_minus_p ? ";}continue{print" : "");
-                   sv_catpv(PL_linestr,";}");
+                   sv_setpv(PL_linestr,PL_minus_p
+                            ? ";}continue{print;}" : ";}");
                    PL_oldoldbufptr = PL_oldbufptr = s = PL_linestart = SvPVX(PL_linestr);
                    PL_bufend = SvPVX(PL_linestr) + SvCUR(PL_linestr);
                    PL_last_lop = PL_last_uni = Nullch;