in reply to accessing a hash of hashes

Take a look at Perl's perlreftut and perlref documentation.

Each item in %urls contains a hash reference. To access this hash reference as a hash, use %$key. To access the value of a key directly from a hash reference, use the -> operator.