Hi,
Using
DBI you can connect to the three databases you mentioned. You will need the
appropriate driver for each.
I dont quite understand the rest of your request, perhaps I am being silly or perhaps you could describe your problem better. I dont think you should have a problem working out how to process each .sql file in a folder from a Perl script using
DBI.
If you are new to Perl I would suggest having a look at the
Tutorials section of this site, they cover everything you will need to know in order to complete this task.
Hope this helps.
Martin