develooper Front page | perl.perl5.porters | Postings from July 2011

Re: Support for octal literals using 0odd and 0Odd

Thread Previous | Thread Next
From:
Claes Jakobsson
Date:
July 1, 2011 11:23
Subject:
Re: Support for octal literals using 0odd and 0Odd
Message ID:
E24E5060-A061-4FFD-ACB4-2DD21BCE78A1@surfar.nu
On 1 jul 2011, at 00.47, Claes Jakobsson wrote:
> Hi,
> 
> perltodo lists that we should support octal literals using 0odddddddd as we support 0xdddddddd for hex. Is there any place besides Perl_scan_num in toke.c, a doc change in pod/perldata.pod and a test in t/base/num.t that needs to be changed?
> 
> I looked at looks_like_number and grok_number but they only seem to look at decimal numbers.

since hex() supports 0x then oct() should support 0o, right? If so please ignore patch as I found a couple of more places that needs changing.

Cheers,
Claes
Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About