summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-05-02 06:48:19 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-05-02 06:48:19 +0000
commitb21ed0a92b5a07dd021a85728802e72edfa03699 (patch)
tree2bca4101a44803d4b5c72468e9d4dc24f12743a5 /pp.c
parenta6b2f353992254a6ec5c40c60b053f7a6817c8e4 (diff)
downloadperl-b21ed0a92b5a07dd021a85728802e72edfa03699.tar.gz
change#3798 broke the meaning of "\0_7_7", tr/\0_// etc.; fix it
such that underscores are only ignored in literal numbers, "\x{...}", and hex/oct argument p4raw-link: @3798 on //depot/cfgperl: 252aa0820e6bce274b33bd342cfc65e18a59a165 p4raw-id: //depot/perl@6044
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp.c b/pp.c
index 17824bd090..a86be7ad3e 100644
--- a/pp.c
+++ b/pp.c
@@ -1885,6 +1885,7 @@ PP(pp_hex)
STRLEN n_a;
tmps = POPpx;
+ argtype = 1; /* allow underscores */
XPUSHn(scan_hex(tmps, 99, &argtype));
RETURN;
}
@@ -1902,6 +1903,7 @@ PP(pp_oct)
tmps++;
if (*tmps == '0')
tmps++;
+ argtype = 1; /* allow underscores */
if (*tmps == 'x')
value = scan_hex(++tmps, 99, &argtype);
else if (*tmps == 'b')