summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorWilson P. Snyder II <unknown@perl.org>1998-11-30 00:00:00 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1998-12-31 11:18:17 +0000
commit4f19785bce4da39a768aa6210f1f97ab4c0600dd (patch)
treed61c839a9780269b7b0766bad2487e8053caa5fd /pp.c
parent142393a6492fce5c4bb6f282b1ba1d8da7c0064b (diff)
downloadperl-4f19785bce4da39a768aa6210f1f97ab4c0600dd.tar.gz
REV2: Binary number support
To: perl5-porters@perl.org Message-ID: <199811301543.KAA15689@vulcan.maker.com> p4raw-id: //depot/cfgperl@2546
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 004ba8c56f..44114e79f3 100644
--- a/pp.c
+++ b/pp.c
@@ -1822,6 +1822,8 @@ PP(pp_oct)
tmps++;
if (*tmps == 'x')
value = scan_hex(++tmps, 99, &argtype);
+ else if (*tmps == 'b')
+ value = scan_bin(++tmps, 99, &argtype);
else
value = scan_oct(tmps, 99, &argtype);
XPUSHu(value);