in reply to Re: Mysteries of unpack
in thread Mysteries of unpack

To get the desired result,

>perl -e"printf(qq{%d\n}, unpack('C', pack('h', 'F')));" 15

or

>perl -le"print(hex('F'));" 15

As you can see, the OP has pack and unpack backwards.