$hex_num = 3914; print $hex_num;
What you might want is this:
$hex_num = 0xf4a; printf "0x%x", $hex_num;
In reply to Re: Output numbers in hex
by seattlejohn
in thread Output numbers in hex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |