Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: complex CGI::Application structure

by mpeters (Chaplain)
on Mar 14, 2005 at 22:58 UTC ( [id://439489]=note: print w/replies, xml ) Need Help??


in reply to complex CGI::Application structure

You might take a look at CGI::Application::Dispatch which does exactly what you are asking for.

I you are running under mod_perl, you can set CGI::Application::Dispatch to be your response handler and it will delegate to the appropriate classes with out any instance scripts.

If you are running under vanilla cgi (mod_cgi) you can use just one instance script using the dispatch() method to replace all of the other little scripts.

As you pointed out, you do lose the individual new() calls to each module, but you still have a setup() method in each module.

Replies are listed 'Best First'.
Re^2: complex CGI::Application structure
by qq (Hermit) on Mar 14, 2005 at 23:10 UTC

    that looks very nice, thanks.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://439489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found