in reply to Transitioning to mod_perl
The general rules to avoid problems are:
use strict;
use warnings;
(no warnings 'uninitialized' may be convenient if you deal with a lot of nulls from a database.)
Keep global variables to a few obvious necessities, like $dbh and $session. These should be initialized by your templating system or your handler function, before your page logic even gets a chance to run.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Transitioning to mod_perl
by jeyroz (Monk) on Jun 17, 2005 at 05:22 UTC |