in reply to (Ovid) Re: Obscure variable suicide problem in autoloaded module
in thread Obscure variable suicide problem in autoloaded module

Some notes -- I seem not to have been very clear in my original message (looking back at it, indeed, very muddy).

First of all, EmailQuote and QuotePage neither refer to $QtePostscript. That variable is only referenced in that module by genHTMLQuote.

No, it is not a strictish program. And, yes, globals are overused - this was a down and dirty script that needed to be completed in a very short time. (Excuses, excuses, may the Saints forgive me!) However, this program does work "flat" and does not work as autoloaded modules (the script was tested without autoload, BTW, to ensure no deferred run-time errors). Also, literally the only places in the code in which $QtePostscript appears is at its initialization in main:: and at genHTMLQuote in the WQ_Finish module (I searched the code, both flat and modulized).

Thank you for your tips, of course. Fortunately, I will have an opportunity to take a lot of time to fix this messy script sometime in the near future, and your tips will be invaluable.