Richard Lee wrote:
below is hash of hash?

No, it's not. It's a failed attempt to try to imitate what's outputted when you use Data::Dumper to print a hash of hashes.

how do I dereference them (all of them)?

C:\home>type test.pl
my %HoH = (
    'number' => {
        'three' => '21',
        'five' => '23',
        'one' => 'number',
        'two' => '20',
        'four' => '22'
    },
    'alpha' => {
        'e' => '103',
        'c' => '101',
        'a' => 'alpha',
        'b' => '100',
        'd' => '102'
    }
);

# printing examples
print "number - four is: $HoH{number}{four}\n";
print "alpha - e is:     $HoH{alpha}{e}\n";

C:\home>perl test.pl
number - four is: 22
alpha - e is:     103

C:\home>

But you need to make an effort with the perl documentation.

    perldoc perldsc
    perldoc perlreftut
    perldoc perlref

Good luck!

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to