There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Difference between Perl and Java for << operator?
by LanX
|
|