"be consistent" | |
PerlMonks |
Re: Difference between Perl and Java for << operator?by LanX (Saint) |
on Jul 29, 2021 at 23:03 UTC ( [id://11135507]=note: print w/replies, xml ) | Need Help?? |
Don't know much about Java, but > I have this bit of Java code, which is known to work as-expected: > RESULT: -268435456 How can a negative result be considered expected? I think you should take care that both sides are unsigned integers of same size. FWIW I don't get your Perl result
so 64bit Perl seems to matter too.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|