in reply to Using a package within a package

I just got an answer about scoping wrong the other day, so you may wish to take this with a pich of salt.

The answer is "not like you are doing it". You would have to declare your CGi varibles inside your package (e.g. $query = new CGI;) and then pass them out of your package using EXPORTER. There is a comprehensive treatment of this here. I recommend copying the example whole and then building your module into that.

____________________
Jeremy
I didn't believe in evil until I dated it.