in reply to Re: Re: Re: Hex to decimal
in thread Hex to decimal

You can skip the hex step with:
perl -e 'print unpack "s", pack "H*", "ffaa"'
If that's wrong on your system, it's an endian problem. {grin} So you can also try:
print unpack "s", pack "h*", scalar reverse "ffaa";
which does print -86 on my machine.

-- Randal L. Schwartz, Perl hacker