I am reading the question whether Perl needs to be compiled 64 bit, not Windows or CPU.
Perl can be configured to use a 64-bit degree of varying degrees. You can watch this with the Config module.
To check if Perl is compiled to use 64-bit integers, you can look at the use64bitint entry in Config.
use Config; print $Config{use64bitint};
define indicates yes.
There is also ...
use64bitall The perl value will be compiled to use the entire 64-bit version, including 64-bit pointers, allowing access to more than two gigabytes of memory.ivsize , indicating how many bytes Perl will use to store an integer, 8 indicates 64 bits.ptrsize - how many bits Perl will use to store pointers, which allows you to use more than 2 gigabytes of memory for each process, 8 - 64 bits.
Common Config variables and their values ββcan be seen in perl -V (note capital V). Their definitions can be found using perldoc Config .
Note. You can compile Perl to use 64-bit integers regardless of whether your operating system or processor is 32 or 64 bit. On a 32-bit processor, Perl will use a type other than integer to store numbers, possibly a long integer.
source share