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

deadlock has asked for the wisdom of the Perl Monks concerning the following question:

Hello monks, I have a question that someone might be able to help me with. I need to take an integer and convert it to hex. As an example, if I take 1501299200 as my integer:
$theInt = 1501299200; $theHex = sprintf("%lx", $theInt); # returns 597c0200;
Now, this much is fine - but how do I convince Perl that $theHex is a hex value and not a simple string?
Any help would be much appreciated.
Deadlock