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

esskar
 2004-05-15 00:25
#14931 #14931
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[E|B
,14.05.2004, 21:00]@esskar

Was gefällt dir an reverse nicht?

es war nicht intuitiv:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
C:\Dokumente und Einstellungen\sak>perl
print unpack("b*", pack("L", 3)); print "\n";
print reverse unpack("b*", pack("L", 3)); print "\n";
print join("", reverse split //, unpack("b*", pack("L", 3))); print "\n";
^Z
11000000000000000000000000000000
11000000000000000000000000000000
00000000000000000000000000000011

C:\Dokumente und Einstellungen\sak>

View full thread LONG nach bitstring: pack und unpack