donfreenut has asked for the wisdom of the Perl Monks concerning the following question:
I want to get at all the key/value pairs in the customizations hash. I'm trying this:my %servers = ( BOUVET => { ps3_path => '\\\\BOUVET\\resin-2.0.3\\doc\\ps3\\', resin_path => '\\\\BOUVET\\resin-2.0.3\\', contexts_path => '\\\\BOUVET\\resin-2.0.3\\doc\\ps3\\contexts\ +\', customizations => { some_key => 'some data', another_key => 'more data' } } );
and Perl is telling me that:foreach my $customization (keys $servers{BOUVET}{customizations}) { print "$customization\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Do I have to explicitly tell keys() that the hash in my hash of hashes is a hash?
by runrig (Abbot) on Dec 07, 2001 at 23:48 UTC | |
|
Re: Do I have to explicitly tell keys() that the hash in my hash of hashes is a hash?
by lestrrat (Deacon) on Dec 07, 2001 at 23:49 UTC | |
|
Re: Do I have to explicitly tell keys() that the hash in my hash of hashes is a hash?
by dragonchild (Archbishop) on Dec 07, 2001 at 23:48 UTC | |
|
Re: Do I have to explicitly tell keys() that the hash in my hash of hashes is a hash?
by demerphq (Chancellor) on Dec 07, 2001 at 23:51 UTC |