develooper Front page | perl.perl5.porters | Postings from June 2010

Re: Case sensitivity in an odd place

Thread Previous
From:
Ævar Arnfjörð Bjarmason
Date:
June 30, 2010 07:29
Subject:
Re: Case sensitivity in an odd place
Message ID:
AANLkTimvHXNGG436P7piyxUmErNCBWjSaSB2ySegSNF8@mail.gmail.com
On Tue, Jun 29, 2010 at 16:02, Bo Lindbergh <blgl@stacken.kth.se> wrote:
> {
>    print 0xabcdef;     # this outputs "11259375"
>    print 0xABCDEF;     # so does this
>    print 0XABCDEF;     # but this is a syntax error
> }
>
> Is there some kind of thought behind only allowing lowercase x
> in a hexadecimal literal?

Oh look, a case where Perl actually is more pedantic than Python, Ruby and C.

No idea why it isn't allowed. Probably because nobody complained so
far and offered up a patch.

Thread Previous


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