-V:... would get upset (syntax error) if ... contained unbalanced ().
Nicholas Clark [Thu, 30 Jun 2005 12:15:14 +0000 (12:15 +0000)]
p4raw-id: //depot/perl@25023

perl.c

diff --git a/perl.c b/perl.c
index 5689281..89d32a8 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -1812,9 +1812,8 @@ print \"  \\%ENV:\\n    @env\\n\" if @env; \
 print \"  \\@INC:\\n    @INC\\n\";");
            }
            else {
-               PL_Sv = newSVpv("config_vars(qw(",0);
-               sv_catpv(PL_Sv, ++s);
-               sv_catpv(PL_Sv, "))");
+               ++s;
+               PL_Sv = Perl_newSVpvf(aTHX_ "config_vars(qw%c%s%c)", 0, s, 0);
                s += strlen(s);
            }
            av_push(PL_preambleav, PL_Sv);