Leser: 4
4 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
...
# die hashes:
%inst_base = ( "von MS Office XP Professional auf" => %pcs,
"von Adobe Creative Suite auf" => %pcs_macs,
"von Adobe GoLive auf" => %pcs_macs,
"von MS Windows 2000 Professional auf" => %pcs);
%pcs = ( "WORTMANN PC: P4, 3Ghz, 512MB Ram" => 0,
"Acer Aspire PC: AMD64 3200+" => 0,
"Sony VAIO Notebook FS1" => 0,
"Sony VAIO Notebook FS2" => 0);
%macs = ( "Apple iMac G4 700MHz" => 0,
"Apple iMac G5 20-Zoll" => 0,
"Apple iMac G5 17-Zoll" => 0,
"Apple PowerMac G5 Dual 2,5GHz" => 0,
"Apple PowerMac G5 Quad 2,5GHz" => 0,);
%pcs_macs = (%pcs, %macs);
# der code...
while ($weiter){
@temp = keys %hash;
$cur_key = $temp[rand @temp];
$satz.= " $cur_key";
if ($hash{$cur_key}){
%hash = $hash{$cur_key};
} else {
$weiter = 0;
}
}
print "\n$satz\n";
...
1
2
3
Odd number of elements in hash assignment at ./ber.pl line 57.
von MS Office XP Professional auf von Adobe Creative Suite auf
%hash = $hash{$cur_key};
1
2
3
4
5
6
...
%inst_base = ( 'von MS Office XP Professional auf', \%pcs,
'von Adobe Creative Suite auf', \%pcs_macs,
'von Adobe GoLive auf', \%pcs_macs,
'von MS Windows 2000 Professional auf', \%pcs);
...
1
2
Reference found where even-sized list expected at ./ber.pl line 59.
von MS Office XP Professional auf HASH(0x8160218)
4 Einträge, 1 Seite |