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

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

I'm trying to do something that is probably stupidly simple, but it's just not working. I have a string with some decimal digits and some uppercase A..F. The string does NOT begin with "0X". I am simply trying to get the hex value into a variable. I've tried various prefixes, sprintf with various formats, pack, unpack, and a few more things. It's just not working ???