Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Difference between Perl and Java for << operator?

by choroba (Cardinal)
on Jul 30, 2021 at 09:19 UTC ( [id://11135520]=note: print w/replies, xml ) Need Help??


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

Java doesn't support the %u format. Using a trick from StackOverflow gives the same results:
public class HighBits { public static void main(String... argv) { long HIGH_BITS = 0xFFFFFFFF << 28; System.out.printf("%d\n", HIGH_BITS); System.out.printf("%d\n", HIGH_BITS & 0xFFFFFFFFL); } }
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 05:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found