I have had numerous headaches trying to get the MySQL APIs for Perl ... 32-bit and 64-bit libraries don't play nice together. So, it depends ...
stackoverflow.com