Is your monitoring code running in its own block, with the variables lexically scoped in that block (with my)? That'll make sure that your variables go away when you reach the end of the block.
the only thing we are doing to the databases from this script is connecting
and then disconnecting.
Yes I am using strict 'vars'?
Yes code is running in it own block and I declare the vars using my? I believe
strict for the most part checks for this - please correct me if I am wrong?
Thanks much Robert