in reply to Closing connections in mysql using perl

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.