in reply to Changing a subroutine to a module
I would suggest that you don't want to tell the user too much about your error.
The ordinary user only cares whether you can answer his query or not, but the malicious user might use debugging info to find ways to break into your system.
What you DO need is to make sure messages get into the apache log.
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|