Do you know where your variables are? | |
PerlMonks |
Fastcgi and persistence in sub modulesby Anonymous Monk |
on Nov 28, 2012 at 14:34 UTC ( [id://1006040]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Dear monks, In the context of web scripting, say I've a main fastcgi-enabled script that imports Module A (before the "while" loop). Module A in turn imports Module B and Module C. Since Module A is loaded before the "while" loop in the main script, it's saved in memory. But what about Module B and Module C? Do these also become persistent as a result of loading Module A at the start of the script? If not, is it a good practice to load them in the main script at the same time Module A is loaded i.e. before the "while" loop? Looking forward to your replies and many thanks in anticipation.
Back to
Seekers of Perl Wisdom
|
|