Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: CGI::Application with 'main' runmodes and 'sub' runmodes

by wfsp (Abbot)
on Apr 28, 2007 at 12:55 UTC ( [id://612539]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI::Application with 'main' runmodes and 'sub' runmodes
in thread CGI::Application with 'main' runmodes and 'sub' runmodes

Thanks for your response.
...a real bad code smell.
I agree. A previous 'refactoring' had each 'main runmode' take the second element of path_info and run it through a dispatch table. I just had the feeling that I could let C::A handle that too.

My last effort was, as you say, to separate out the main runmodes as separate C::A apps each with its own instance script. I have a Base.pm that inits everything thats needed and all common code is in its own module. So perhaps the separate apps idea is the way to go.

  • Comment on Re^2: CGI::Application with 'main' runmodes and 'sub' runmodes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-26 08:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found