in reply to convert decimal to binary with unpack problem
Erm? 0x34 = 0b0011 0100 = 52 decimal. Where does the 2100 come from?
You might also look at printf and sprintf format '%b' for converting decimal to hex.
Examine what is said, not who speaks.
The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.
|
|---|