in reply to calculation using multiple rows of a query
Minor redundancy. You don't need use DBD::mysql; as DBI will load the driver when you specify it in connect(). It doesn't hurt anything but it's extra typing.
Jason L. Froebe
Blog, Tech Blog