Hash of Hashes (HoH)



examples/references/hash_of_hashes.pl
#!/usr/bin/perl
use strict;
use warnings;

use Data::Dumper;

my %distance;
$distance{'New York'}{'London'} = 5_027;
$distance{'New York'}{'Bejin'}  = 10_100;
$distance{'Paris'}{'London'}    = 350;

print Dumper \%distance;

$VAR1 = {
          'Paris' => {
                       'London' => 350
                     },
          'New York' => {
                          'Bejin' => 10100,
                          'London' => 5027
                        }
        };