Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Bitwise Operator Error

by ikegami (Pope)
on Oct 02, 2008 at 19:13 UTC ( #715074=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    # File displayPipeTracer2.pl
    ...
    
    my $maskResult = hex($testString) & 0x400000000000000000000000;
    print "Mask Result: $maskResult\n";
    
  2. or download this
    Integer overflow in hexadecimal number at script.pl line 7.
    Hexadecimal number > 0xffffffff non-portable at script.pl line 7.
    Integer overflow in hexadecimal number at script.pl line 7.
    Hexadecimal number > 0xffffffff non-portable at script.pl line 7.
    Mask Result: 4294967295
    
  3. or download this
    #!/usr/bin/perl -w
    # File displayPipeTracer2.pl
    ...
    
    my $maskResult = $testString & 0x400000000000000000000000;
    print "Mask Result: $maskResult\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://715074]
help
Chatterbox?
[stevieb]: beech already found a thing I don't like... it'll take time to sort out some new methods to deal with little/big endian ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-07-22 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (336 votes). Check out past polls.