Leser: 1
|< 1 2 >| | 13 Einträge, 2 Seiten |
while ( my @aContr = $sqlResult->fetchrow_array()){
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
my (%hData);
while ( my @aContr = $sqlResult->fetchrow_array()){
$hData{$aContr[1]} = (
{ $aContr[3] =>
{
TYP => $aContr[0],
DV => $aContr[1],
STATUS => $aContr[2],
PATTERN => $aContr[3],
.
.
.
}
}
);
# Hier kommt leider nur Müll raus
foreach my $t (keys %{$hData{$aContr[1]}} ){
foreach my $s (keys %{$hData{$aContr[1]}{$t}} {
print "KEY von $aContr[1]: $t | Value dazu ist: $hData{$aContr[1]}{$t}{$s}\n";
}
}
}
'' => undef,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
%hContr = { 'B' => {
'D' => {
TYP => 'A',
DV => 'B',
STATUS => 'C',
PATTERN => 'D'
}
'H' => {
TYP => 'A',
DV => 'B',
STATUS => 'G',
PATTERN => 'H'
}
}
'K' => {
'M' => {
TYP => 'A',
DV => 'K',
STATUS => 'L',
PATTERN => 'M'
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
%hContr = { 'B' => {
'H' => {
TYP => 'A',
DV => 'B',
STATUS => 'G',
PATTERN => 'H'
}
}
'K' => {
'M' => {
TYP => 'A',
DV => 'K',
STATUS => 'L',
PATTERN => 'M'
}
}
}
1
2
3
4
5
6
7
8
9
$hData{$aContr[1]}->{ $aContr[3] } = (
{
TYP => $aContr[0],
DV => $aContr[1],
STATUS => $aContr[2],
PATTERN => $aContr[3],
}
}
);
1
2
3
4
5
6
7
8
9
my %hContr = (
'B' => {
'D' => { TYP => 'A', DV => 'B', STATUS => 'C', PATTERN => 'D' },
'H' => { TYP => 'A', DV => 'B', STATUS => 'G', PATTERN => 'H' }
},
'K' => {
'M' => { TYP => 'A', DV => 'K', STATUS => 'L', PATTERN => 'M' }
}
);
|< 1 2 >| | 13 Einträge, 2 Seiten |