http://www.perlmonks.org?node_id=1012022


in reply to I need Hex conversion, not!

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.