in reply to defining variables using my - subroutines
Do you have any code?
Please spend some effort and reduce your code to the bare minimum that reproduces the problem.
Is the database access relevant to your problem?
Are the three different subroutines relevant to your problems?
You've been advised several times by now not to use prototypes on your subroutines. Are they relevant to your problems?
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (148 votes). Check out past polls.