Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

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

by wfsp (Abbot)
on Apr 28, 2007 at 12:55 UTC ( #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? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-05-29 12:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?