| 
 Posted by fritz-bayer@web.de on 07/03/06 11:41 
Hello, 
 
I'm porting a program from php to perl and discovered, that the bitwise 
operator & seems to work differently, which I don't understand why. 
 
I tested it with the values: 
 
a=5543039447 and b=13 
 
Then in perl the expressions: 
 
$result= ($z & $a); 
 
returns 2147483648. 
 
But in php the same expression returns zero. Why is that and how can I 
fix it?! 
 
Fritz
 
  
Navigation:
[Reply to this message] 
 |