I presume you are talking about running MySQL and Perl on different servers, or maybe on VMs? :-). In any event, your Perl program will be perfectly happy as a DBI database connection doesn't care where the server is or what operating system the database is running on as long as you configure it correctly.
You can even run MySQL in Windows - I wouldn't normally suggest this but it may be helpful in your case.
A Monk aims to give answers to those who have none, and to learn from those who know more.