4/11 If I add in mod_perl, is there anything extra I have to do on the
hundreds of *.cgi's files that I created?
\_ Yes. There is a guide with the mod_perl documentation that
tells you what to do. Mod_perl is MUCH pickier than most Perl
programmers. That is to say, your scripts may require a lot of
reworking. --sowings
\_ I think the most common catch'em (for me) is that my CGIs
operated on the assumption that variables == 0 or empty string.
Alas, when run under mod_perl, variables tend to have the value
from the last time they ran (can't depend on this though),
so you need to make sure you always reinitialize things.
\_ 1) Good thing you don't write in C (or perhaps you don't
write your C this way).
2) This is because mod_perl caches scripts. If the script
hasn't changed on disk, the server doesn't have to
recompile it. This is what buys you performance.
--sowings
\_ If you put #!/usr/bin/perl -w at the top and
"use strict;" in the code, you'll get a good idea of
the changes you need to make. -tom |