Note that perl is written in C
True.
I don't think that C makes any guarantees for the availability of a 64 bit integer type.
True. In fact, considering the age of C, I don't even think 32 bit integers are garanteed.
Many other language implementations "solve" this problem by ignoring platforms or compilers that don't do what they want, but perl's focus is usually stronger on portability.
... true, but Perl can be compiled to have 64-bit integers even if the underlaying hardware is 32 bits. It's actually the C compiler that determines whether you can have 64 bit integers or not. And many modern C compilers, including gcc, allow for this. (But it has worked the other way around as well. About a dozen years ago, I worked on a 64-bit SUN platform, but the then version of gcc couldn't deal with 64 bits).

Note also that even if your hardware is 32 bits, and you don't compile Perl to have 64 bit integers, your Perl integers still aren't limited to 32 bits. If an integer value exceeds 32 bits, Perl silently upgrades it to a float, and will give "integers" up to 64 bits. If the value exceeds about 53 bits, the "integers" aren't exact any more, they will have some losses in their least significant bits (which may mean that if you add 1 to such an integer, it doesn't change value).


In reply to Re^4: Is there a 64-bit hex()? by JavaFan
in thread Is there a 64-bit hex()? by kornerr

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.