summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-10-28 21:21:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-10-28 21:21:16 +0000
commitd4ede91ce64eb3ddd64daea7c7434c33963c2e15 (patch)
tree04fd2cb16179526214640b88c7eea4fd8015f163 /pp.c
parentdf0003d4dd97bb27e464c2adb8c54893f719ec3c (diff)
parentaa34f1896a2ee367bc51453b669f7c047ad1b32d (diff)
downloadperl-d4ede91ce64eb3ddd64daea7c7434c33963c2e15.tar.gz
integrate cfgperl into mainline
p4raw-id: //depot/perl@2113
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 63f20b8a0a..d243475843 100644
--- a/pp.c
+++ b/pp.c
@@ -2469,6 +2469,13 @@ PP(pp_quotemeta)
*d++ = *s++;
}
}
+ else {
+ while (len--) {
+ if (!isALNUM(*s))
+ *d++ = '\\';
+ *d++ = *s++;
+ }
+ }
*d = '\0';
SvCUR_set(TARG, d - SvPVX(TARG));
(void)SvPOK_only(TARG);