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++
In reply to Re^5: Practical Example of Converting Packed Value
by BrowserUk
in thread Practical Example of Converting Packed Value
by Jim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |