Leser: 18
1
2
3
for (my $i =0; $i<=$#werte; $i++) {
$hash{$f} = {'RD29.0' => {$PrimKey => {$Key[$i]}}} = $werte[$i];
}
1
2
3
$node{ina} = { peter => { ulli => { hans => 'ottmar'}}};
$node{ina} = { peter => { ulli => { test => 'ottmar'}}};
$node{ina} = { peter => { ulli => { willi => 'uschi'}}};
2010-12-02T18:16:41 hansi66[...]
Code: (dl )1
2
3for (my $i =0; $i<=$#werte; $i++) {
$hash{$f} = {'RD29.0' => {$PrimKey => {$Key[$i]}}} = $werte[$i];
}
[...]
Was muss ich machen, damit alle Schleifendurchläufe auch im Hash landen?
[...]
1 2 3
for my $i (0 .. $#werte) { $hash{$f}->{'RD29.0'}->{$PrimKey}->{$Key[$i]} = $werte[$i]; }