On Sep 24, 2005, at 10:59 AM, Bill Stephenson wrote:

I'm trying to understand how to convert my CGI scripts to use modules.

I worked this problem out. Reading the docs and this page (http://www.perl.com/pub/a/2001/06/05/cgi.html) for CGI::Application has helped me better understand how to use modules, but I'm still left somewhat confused on the subject of efficient web application design.

My original question had to do with "How big is too big" and I don't see the advantage of creating a large module accessed by a small "Instance" script, as compared to a a single, large, cgi script that uses sub-routines, to process "run-modes". What happens when your module or script grow to over 1 megabyte?

Wouldn't it be more efficient for the server to run a small script that contains only the set-up and sub-routines needed to process a single "run-mode" instead of loading all the data needed to process all the "run-modes" used in an entire application?

Also, the above article implies that web applications created with CGI::Application are ready for mod_perl. I've never tried creating a script that would run with mod_perl but if this is true, I'd like to try it out. Any feedback on using CGI::Application would also be much appreciated.

Kindest Regards,
--
Bill Stephenson


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to