in reply to Generic Way of printing of Hash of Array

can someone explain me the generic ways of printing the elements in hash

The generic way is to get the values via their keys and print them. The keys can be gathered via keys and then be used as arguments to a for loop. You can also retrieve key/value pairs via each and wrap that into a while loop.

That's all that can be said wrt generic ways. If you just want the entire structure dumped to have it at a glance, then

use Data::Dumper; my %hash = ( # fill in blank ); print Data::Dumper->Dump([\%hash],[qw(hash)]);