Looks like you've stumbled on one of the many, many problems that occurs when using global variables. Since these variables do not need to be declared, it's relatively easy to misuse them. I don't think it's possible to tell, from the information you've listed, exactly what the problem is, but here are some guesses:
Since you have not explicitly stated a package name, this implies that you have not used strict. This means that your error could be virtually anywhere. All bets are off, then.$QteExpires = '30 days';
As a general rule, if I find that I'm worrying a lot about namespace issues, then I have some serious code problems and need to consider redesigning things, though I realize that you may not have this luxury. Good luck! Sounds like you've got a serious problem on your hands.
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: Obscure variable suicide problem in autoloaded module
by Ovid
in thread Obscure variable suicide problem in autoloaded module
by HyperZonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |