in reply to Re^3: symbols, scope, and mod_perl
in thread symbols, scope, and mod_perl
You are right. To be more precise, I am actually allocating the object on thread symbol table, but under mod_perl objects in "main" threads functions are persistent between calls. So it gets messed on subsequent calls. To avoid this it is needed to use a lexical variable, that does not allocate on the symbol table. To achieve the same behavior as per cgi environment, I should manipulate what it is called "stack scratchpad", but I do not have such skills.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: symbols, scope, and mod_perl
by Anonymous Monk on Oct 01, 2012 at 12:11 UTC | |
by acanfora (Novice) on Oct 01, 2012 at 12:18 UTC | |
by Anonymous Monk on Oct 01, 2012 at 12:23 UTC | |
by acanfora (Novice) on Oct 01, 2012 at 12:38 UTC | |
by Anonymous Monk on Oct 01, 2012 at 12:55 UTC | |
| |
Re^5: symbols, scope, and mod_perl
by Anonymous Monk on Oct 01, 2012 at 12:09 UTC | |
by acanfora (Novice) on Oct 01, 2012 at 12:12 UTC | |
by Anonymous Monk on Oct 01, 2012 at 12:16 UTC | |
by acanfora (Novice) on Oct 01, 2012 at 12:23 UTC | |
by Anonymous Monk on Oct 01, 2012 at 12:39 UTC | |
|
In Section
Seekers of Perl Wisdom