It a little bit misunderstandable... let´s say i got 100 hashes named after each of my routers.
a list auf my routeres is in @allmyrouters. My hashes contains fileds: ip, interfaces, admin. I want to access each hashes field admin in a loop. How do i do that? > -----Ursprüngliche Nachricht----- > Von: Connie Chan [mailto:[EMAIL PROTECTED]] > Gesendet am: Montag, 26. August 2002 13:38 > An: Angerstein; [EMAIL PROTECTED] > Betreff: Re: use Variable as a hashname? > > $x = 'key'; > > %Y = (); > > $Y{$x} = 10; > > print $Y{key}; # You got 10; > > Rgds, > Connie > > > > ----- Original Message ----- > From: "Angerstein" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, August 26, 2002 7:33 PM > Subject: use Variable as a hashname? > > > > Hello, > > can I / how can I use a variable as a hash name? > > > > $$myVar{key}? > > > > Thanxs! > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]