diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-02 21:37:29 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-01-02 21:37:29 +0000 |
commit | 69b47968fa00dfccb6aab68633e778fed2de80ea (patch) | |
tree | 172ea60712feb722b7efb33f51e593a9975d3918 /pp_hot.c | |
parent | 6f7d0078e68bc6a1f2a59d66e229fb67ce3fbb40 (diff) | |
download | perl-69b47968fa00dfccb6aab68633e778fed2de80ea.tar.gz |
disable optimization in change#3612 for join() and quotemeta()--this
removes all the gross hacks for the special cases in that change; fix
pp_concat() for when TARG == arg (modified version of patch suggested
by Ilya Zakharevich)
p4raw-link: @3612 on //depot/perl: b162f9ead0a98db35cdcfc8c889e344c040c8d8e
p4raw-id: //depot/perl@4749
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -152,8 +152,14 @@ PP(pp_concat) dPOPTOPssrl; STRLEN len; char *s; + if (TARG != left) { s = SvPV(left,len); + if (TARG == right) { + sv_insert(TARG, 0, 0, s, len); + SETs(TARG); + RETURN; + } sv_setpvn(TARG,s,len); } else if (SvGMAGICAL(TARG)) |