Thread Sortierte Ausgabe Hash in hash in hash (3 answers)
Opened by Franz at 2007-01-31 15:41

Franz
 2007-01-31 15:41
#73876 #73876
User since
2006-07-12
31 Artikel
BenutzerIn
[default_avatar]
Hallo,
ich habe folgendes hash

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
my %dienste=(
"x" => {
"fields" => {
"a" => {
"order" => "03",
"content" => "n"
},
"b" => {
"order" => "02",
"content" => "u"
},
"c" => {
"order" => "01",
"content" => "h"
},
"d" => {
"order" => "04",
"content" => "d"
}
}
}
);


und möchte meinen "content" nun nach "order" sortiert ausgeben
eigentlich ist hash "x" noch in hash "y" und hash "z" aber das kann ich wohl für das grundproblem weglassen, oder?

... ich bekomm es nicht hin - aus den bestehenden forenbreiträgen bin ich leider nicht schlau geworden


Code: (dl )
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
my %dienste=(
"z" => {
"y" => {
"x" => {
"fields" => {
"a" => {
"order" => "03",
"content" => "n"
},
"b" => {
"order" => "02",
"content" => "u"
},
"c" => {
"order" => "01",
"content" => "h"
},
"d" => {
"order" => "04",
"content" => "d"
}
}
}
}
}
);

View full thread Sortierte Ausgabe Hash in hash in hash