![]() |
|< 1 2 >| | ![]() |
11 Einträge, 2 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$test = 2872989898322;
$test = 1234567890; #gekürzte Version
print "Vorher: $test\n";
$test = pack("L",$test);
print "Gepackt: $test\n";
$test = unpack("L", $test);
print "Nachher: $test\n";
exit;
Vorher: 1234567890
Gepackt: ÊxûI (*)
Nachher: 1234567890
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$test = 2872989898322;
#Packen
print "Vorher: $test\n";
while($test > 4294967295)
{
$test = $test - 4294967295;
push(@new,pack("L",4294967295));
}
push(@new,pack("L",$test));
print "Gepackt: @new\n";
#Entpacken
$new = unpack("L$#new", @new);
print "Nachher: $new\n";
![]() |
|< 1 2 >| | ![]() |
11 Einträge, 2 Seiten |