"but I get the same answers in C:"
That's for sure, as Perl's << does nothing more than simply calling c's <<. The behavior was expected. For 32 bit c, the result for 8 << 32 is undefined.
In reply to Re^2: behavior of bitwise shift
by pg
in thread behavior of bitwise shift
by ngiordano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |