
Revelation
Novice
Jun 11, 2002, 10:09 AM
Post #7 of 13
(27778 views)
|
Re: [yapp] How to convert your scripts to mod_perl
[In reply to]
|
Can't Post
|
|
Some other things: No __DATA__ Flags at the end of your script, or __END__ flags, either I believe. Mod_Perl is a stricter "language" than perl, which involves making sure we don't have memory leaks, etc. You'll get them even if you are strict and warnings compliant. Modules are *good*, modular coding attests to your abilities, in now way does it detract from them. A well defined object orriented structure in your modules will make your script clean and simple, it will also make modification heaps easier. If you're not using CGI;, then I hope you're using the appropriate Apache modules. Still on the subject of modules, I'd recomend reading: http://perl.apache.org/tuning/#BASIC_CONFIGURATION Loading modules onto the http processes will make your scripts damn quick. http://perl.apache.org/dist/cgi_to_mod_perl.html has some other stuff.
|