[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Application program structure


> My question is: Is it a requirement to have ALL perl scripts in one
> big application module with one set of (maybe 50 to 100) run modes? I

A run mode is merely responsible for calling functions to manipulate the
data, then calling whatever display routines, and returning the output.

The functionality can be contained in other modules.

For example, CGI::App::Foo might be a cgiapp application module, and
have a handful of runmodes that call Foo::Bar and Foo::Baz to do their
processing, then Template Toolkit or HTML::Template to process output.

So you do not have to have the functionality of all your code in the
same module.

Now I'm not quite clear on what you're talking about with calling 50-100
run modes from a menu system.  Are these really all parts of the same
application?

-- 
SwiftOne  /  Brett Sanger
suppressed   

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.