in reply to How do I convert from decimal to 2's Complement

Those aren't "decimal" to 2's complement. They're "number represented as 2s complement". Perl numbers aren't in "decimal" internally.
  • Comment on •Re: How do I convert from decimal to 2's Complement