diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-02 06:48:19 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-05-02 06:48:19 +0000 |
commit | b21ed0a92b5a07dd021a85728802e72edfa03699 (patch) | |
tree | 2bca4101a44803d4b5c72468e9d4dc24f12743a5 /pp.c | |
parent | a6b2f353992254a6ec5c40c60b053f7a6817c8e4 (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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') |