What errors are you getting? That could be helpful.
Personally, I think you went about things the wrong way. Normally, one doesn't specialize, then shoehorn them back into the general case. Remember - you can use more than one .cgi in your "application". CGI::Application is really misnamed. It should be called CGI::ApplicationComponent. My current CGI app is actually made up of
- main.cgi - login, logout, homepage, and the like
- help.cgi - all help functionality, including FAQ and the like
- search.cgi - all searching functionality (delegates to a generic searcher which everyone can use)
- reports.cgi - all reports (which other areas delegate to as well)
- messaging.cgi - one section of the application is about sending and receiving messages
That's all in one web application. Each of them has their own class that inherits (indirectly) from CGI::Application. One C::A developer told me that if any of his C::A classes has more than 8-12 runmodes, he has to find a reason not to refactor it into more than one C::A class, with its own .cgi wrapper.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.