in reply to Dumping a Database via DBI

The dumper in phpMyAdmin (http://www.phpwizard.net) works fairly well. I'd suggest that you steal the routines from that program and use them. It should be trivial to port them over to a perl script.