http://qs1969.pair.com?node_id=11135535


in reply to Difference between Perl and Java for << operator?

The answer to your question is hidden in the documentation for Integer Arithmetic. You need use integer; if you want your result as a signed integer. (By default it is treated as an unsigned integer.) Note also, that your << 28 assumes that your perl is compiled for 32-bit integers.
Bill