I have Hash where values of keys are other Hashes.
Example: {\'key\' => {\'key2\' => {\'key3\' => \'value\'}}}
How can I iterate throug
The earlier answers show how to roll your own solution, which is good to do at least once so you understand the guts of how perl references and data structures work. You should definitely take a read through perldoc perldsc and perldoc perlref if you haven't already.
However, you don't need to write your own solution -- there is already a module on CPAN which will iterate through arbitrarily-complex data structures for you: Data::Visitor.