# code of myModule use strict; use warnings; use diagnostics; package myModule; # sub routine one for generating HTML content # sub routine two for generating HTML content # sub routine third for database content # some of its code # database disconnection $dbh->disconnect; 1; #### This is apache error log:[Sun Feb 16 23:16:59 2014] [error] [client 127.0.0.1] [Sun Feb 16 23:16:59 2014] validate.pl: DBI::db=HASH(0x164d9fc)->disconnect invalidates 1 active statement handle (either destroy statement handles or call finish on them before disconnecting) at D:\\websites\\One\\cgi-bin/Epanvel.pm line 466., referer: http://localhost/cgi-bin/validate.pl