What is a better route to go?
- Have a handler in Apache call
a package directly using a handler() – having the module itself
parse out arguments passed in and loading configuration files based on
argument values.
- Build a script in /cgi-bin/
that uses mod_perl2, parses passed in arguments, loads configuration
files, and then creates a new instance of the module mentioned in option
1, and then calls a “run()” in the module that performs all
the real work.
Is using new() under mod_perl2 inefficient at all that it
would be best to not use it when not necessary?
Thanks!
|
- Best Practices Question Daniel B. Hemmerich
-