Consider using the module Data::Dumper
In reply to Re: Printing an Hash by BillKSmith in thread Printing an Hash by anshumangoyal