That's right, the underlying c is 32 bit, and Perl simply uses c <<. It is said in perlop that:
"The result of overflowing the range of the integers is undefined because it is undefined also in C. In other words, using 32-bit integers, 1 << 32 is undefined. Shifting by a negative number of bits is also undefined."
In reply to Re^2: behavior of bitwise shift
by pg
in thread behavior of bitwise shift
by ngiordano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |