Thread Hash --> Zugriff auf ein bestimmtes Element (3 answers)
Opened by PETER_PAN2009 at 2010-09-20 10:09

PETER_PAN2009
 2010-09-20 10:09
#141413 #141413
User since
2009-08-24
111 Artikel
BenutzerIn
[default_avatar]
Hallo zusammen!

Folgende Hash-Konstruktion:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
my %my_hash = (
 teil1 => {
  teil2 => {
   teil3 => {
    teil_3_1 => ['wert_xy'],
    },
   teil4 => {
    teil_4_1 => ['wert_ab']
    },
   },
  },
);

Mein Frage: Wie kann ich in einer foreach Schleife auf die Werte von "teil_3_1" und "teil_4_1" also (wert_xy / wert_ab) zugreifen?

Ich hoffe ich habe mich verständlich ausgedrückt :-)


Vielen Dank
Gruß
Peter

View full thread Hash --> Zugriff auf ein bestimmtes Element