in reply to The best way to learn is by doing.

Writing CGI Applications with Perl has many examples of CGI, DBI and of how to use them together.