in reply to Re: Re: Re: Hex to decimal
in thread Hex to decimal
If that's wrong on your system, it's an endian problem. {grin} So you can also try:perl -e 'print unpack "s", pack "H*", "ffaa"'
which does print -86 on my machine.print unpack "s", pack "h*", scalar reverse "ffaa";
-- Randal L. Schwartz, Perl hacker
|
|---|