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

Re^2: Bit fiddling madness

by Athanasius (Archbishop)
on Feb 11, 2014 at 15:51 UTC ( [id://1074430]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl
    use strict;
    ...
    
    $bit = (-1 & 0x80000000) >> 31;
    printf "masked:   0x%x = %d\n", $bit, $bit;
    
  2. or download this
     1:29 >perl 868_SoPW.pl
    
    ...
     1:29 >perl -v
    
    This is perl 5, version 18, subversion 2 (v5.18.2) built for MSWin32-x
    +86-multi-thread-64int
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-07-24 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.