Perl Unpack bits issue
I've been trying to figure out the unpack function in Perl and can't quite figure out the whole thing.

What I have:
A string and a 16-bit hex checksum
eg. "this is my string","1234" (1234 is not the real checksum)

So I know unpack('H*', $string) will give me the whole hex value, but I need the 16-bit representation. I know this is an easy one so please forgive my ignorance.
Perl Unpack bits issue
===

I've been trying to figure out the unpack function in Perl and can't quite figure out the whole thing.

What I have:
A string and a 16-bit hex checksum
eg. "this is my string","1234" (1234 is not the real checksum)

So I know unpack('H*', $string) will give me the whole hex value, but I need the 16-bit representation. I know this is an easy one so please forgive my ignorance.