C'mon, you got
that much from
the CPAN page for DBI, or its easy equivalent.
Ask your instructor to show you how to write a
SELECT query and to see if it returns any results. Ask about
COUNT(*).
Or, switch majors in college now. Switch to an art class and stop trying to ask the world to help you
cheat on your homework. Because, it only goes downhill from here. Computer programming does
not consist of "learning enough about brake-pedals and steering wheels to successfully pilot a (say, Perl) motor-car around the block without crashing into a tree." No, it fundamentally consists of planning and then carrying-out a trip across the country, using whatever your car-of-choice (or of necessity ...) can do for you.
If you don't know
what to do, and it appears right now that you do not, then it is fruitless for someone
else to present to you a pretty packaged "answer" that actually does it ... because
you will have learned nothing and will still know nothing of how to make a similar
plan for yourself, to solve the next problem and the next and the next.
I'm not making fun of you: I'm telling you
why you need to engage your instructor for help. Some of the time, I
am an instructor.
I swear to you that I do not like to fill-in the little bubble on the opscan sheet that has an "F" in it, but I promise you also that I can always see it coming.