$SM = 0xFE; print $SM, "\n" ; #it prints out 254 #but of course if I write it like this; printf("0x%02X",$SM); #it prints out 0xFE