Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by jwkrahn (Monsignor)
on Jul 29, 2021 at 23:51 UTC ( #11135509=note: print w/replies, xml ) Need Help??


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

$ perl -le'my $HIGH_BITS = 0xFFFFFFFF << 28; print $HIGH_BITS' 1152921504338411520 $ perl -le'my $HIGH_BITS = unpack "l", pack "l", 0xFFFFFFFF << 28; pri +nt $HIGH_BITS; ' -268435456

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2021-09-24 08:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?