while(($key, $value) = each(%hservers)) {
$hserver{$keyX}->[0]->[1] ="some value";
$hserver{$keyX}->[1]->[0]->[0] ="1"; #secondpart
$hserver{$keyX}->[1]->[0]->[1] =1; #secondpart
$hserver{$keyX}->[1]->[0]->[2] ="parX"; #secondpart
}
####
while(($key, $value) = each(%$href)) {
%$href{$key}->[1]->[0]->[0] = 1; #this gives a syntax error
%{$href{$key}}->[1]->[0]->[0] = "blah" #gives error
print "$key\n"; # but when i do this the code prints all the keys of the reference to the hash. so I assume the the hash was passed through correctly
}
####
$VAR1 = 'server1';
$VAR2 = [
[
'',
'4',
'0',
'0',
'-1',
'0',
'',
'0'
],
[
[
1,
1,
'par 2'
],
[
2,
999,
'par 1'
]
]
];
$VAR3 = 'server2';
$VAR4 = [
[
'',
'2',
'0',
'0',
'-1',
'0',
'',
'0'
],
[
[
1,
1,
'par 2'
],
[
2,
999,
'par 1'
]
]
];
$VAR5 = 'server3';
$VAR6 = [
[
'',
'3',
'0',
'0',
'-1',
'0',
'',
'0'
],
[
[
1,
1,
'par 2'
],
[
2,
999,
'par 1'
]
]
];