in reply to Re^4: Practical Example of Converting Packed Value
in thread Practical Example of Converting Packed Value

Is there any reason not to use these binary constants instead of hexadecimal constants in the real program?

Absolutely not! I actually had to write the binary down and convert to derive the hex.

Why did I do that? Simply, because I forgot that Perl can handle binary constants. Dumb, but true.

I especially like your use of the benign underscore to clarify the breakdown++


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^5: Practical Example of Converting Packed Value