Is there something that does this already and I just missed it? If so, point me at it and skip the rest. :)
phpmyadmin: It's not in Perl (It's in PHP), but it does do auto creation of form fields based on table structure. Specifically when you click on the 'Insert' tab when working with a table. This would be a good place to start if you don't mind reading a little PHP.