Numbers are numbers. Their format is determined on output. See sprintf.
If you want to use strings, then use strings.
$SM = "0xFE"; print $SM;
Of course, for strings, there is no numeric addition. Maybe you want to tell us more about your use case.
In reply to Re: I need Hex conversion, not!
by Corion
in thread I need Hex conversion, not!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |