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

Re: Case sensitivity in an odd place

Thread Previous
Ævar Arnfjörð Bjarmason
June 30, 2010 07:29
Re: Case sensitivity in an odd place
Message ID:
On Tue, Jun 29, 2010 at 16:02, Bo Lindbergh <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About