Hello friends,
I got doubt in doing signed hexadecimal comparision.
Here $tmp & tmp1 are negative decimal values , when i convert that numbers as hexadecimal & comparing with the mentioned below i am getting wrong result.
May i the ultimate solution for signed comparision in perl
-
$tmp = 0xc0211082;
-
$tmp1 = 0xc0000082;
-
-
if($tmp >0 && $tmp1>0){
-
print("Temporary values are greater than Zero");
-
}else {
-
print("Temporary values are less than zero");
-
}
-