Are you using mod-perl? If so read Masem's post above. Otherwise, are you calling $dbh->disconnect after your done with your query? It should implicitly call disconnect when the script exits, but its better to do it yourself.
Comment on Re: Closing connections in mysql using perl