certify
07-17-2001, 07:24 AM
Ok since Mod_Perl is installed by default in RaQ3 how do I make use of it. e.g. get my current scripts to work with mod_perl.
![]() | View Full Version : Questions on Mod_Perl certify 07-17-2001, 07:24 AM Ok since Mod_Perl is installed by default in RaQ3 how do I make use of it. e.g. get my current scripts to work with mod_perl. huck 07-17-2001, 08:07 AM Try a look at the mod_perl guide: http://perl.apache.org/guide/ Converting cgi-bin perl apps to mod_perl takes some time and thought. mod_perl is much more picky about memory usage. A cgi-bin script dies at the end of its work, thus cleaning up after itself. A mod_perl script remains in memory -- if you have a memory leak, then you could have serious problems. Also, note that mod_perl scripts may remember where they were last. For example, a mod_perl script that counts from 0 to 1 will only show 0 on the first time it loads --- then the script is in memory and will continue to go up each time it is accessed -- regardless of who accesses it. Make sure you can run your perl scripts in strict mode with taint checking before you try to convert them -- this will help with the transition. Also, made sure all variables are properly scoped as local or global. |