Have you looked at Data::Dumper? It's perfect for this.
In reply to Re: Viewing Data Structures by DamnDirtyApe in thread Viewing Data Structures by arunhorne