A complete guide to Perl DBI explores the architecture of DBI, explains how to write DBI-based programs, and describes how to take advantage of the various features of DBI and the individual character of each DBD. Original. (Advanced)
For my web sites, I use a few basic elements: a Linux server to start; a MySQL or MariaDB database; for the user interface, besides Apache, I used previously HTML and CGI, but now Restructured Text with Sphinx for building; and I still use custom Perl programs for get data from the database for Sphinx and Apache to serve to users. To connect to the MySQL or MariaDB, the best module is Perl DBI.
Bunce's book is the best book at learning and understanding how to use Perl DBI to fetch data. He explains it well and gives straightforward examples to make it easy for you to use. This is one of five computer books I still keep in printed format -- the rest I recycled and now use the e-book versions. After many years, I still occasionally refer to this book.
Covering everything from database fundamentals to efficient query strategies and even ODBC, this book is an excellent primer to using the Perl DBI. My first edition copy is over seven years out-of-date now, but having just flipped through it again, I can see many of the topics covered are still relevant to the current version of DBI. If you're interested in combining Perl programming with database use, this book is an excellent place to start.