in reply to How to Speed up MySQL w/ Perl
If you want to understand what you are trying to do, rather than following blindly some exotic example, there is something for you in Tutorials, about using the DBI at its best:
HTH
In Section
Seekers of Perl Wisdom