> I love using Data::Dumper. Was wondering if anyone knew of a similar > module that will take a reference to any data structure (the way > Data::Dumper does) and generate a CSV file for all the data.
I'm afraid that's impossible. A flat CSV file can't capture a hierarchical data structure. If you know in advance you have a tabular structure, or can extract a tabular structure from your data, you could use Template Toolkit (this is simpler than you might think) or CSV::Template. You may want to check out YAML, too. It's almost a drop-in replacement for Data::Dumper, supports anything you can put in a data structure, and for simple things like a hash, it will create a file that's easy to parse, import into Excel, etc. - Mark. -- Mark Thomas Internet Systems Architect _______________________________________ BAE SYSTEMS Information Technology 2525 Network Place Herndon, VA 20171 USA _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs