| home / programming / perl / mysqlperl / chap3 / 3 |
[previous][next] |
|
Improving Performance with mod_perlWhen you initialize a variable, make sure it's initialized every time your script executes. The following bit of code sets
The problem is that
So does this:
The basic principle here is that you don't want to start making decisions based on variable values until you know they've been initialized properly. When you're trying to determine the cause of problems due to shared script environments, you may find it useful to stop Apache and restart it using |
| home / programming / perl / mysqlperl / chap3 / 3 |
[previous][next] |
Created: July 13, 2001
Revised: July 13, 2001