Thread LONG nach bitstring: pack und unpack (14 answers)
Opened by esskar at 2004-05-12 23:22

esskar
 2004-05-12 23:22
#14919 #14919
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ich würde gerne eine Zahl in ihre Bitfolge zerlegen:

Code: (dl )
print unpack("b*", pack("L", 3)); # 11000000000000000000000000000000


ich hätte es gerne genau umgekehrt:

also

00000000000000000000000000000011

nur wie?

View full thread LONG nach bitstring: pack und unpack