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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fastcgi and persistence in sub modules
by zwon (Abbot) on Nov 28, 2012 at 15:29 UTC | |
by Anonymous Monk on Nov 29, 2012 at 08:33 UTC | |
|
Re: Fastcgi and persistence in sub modules
by MidLifeXis (Monsignor) on Nov 28, 2012 at 15:17 UTC |