|more useful options|
CGI::Application - A little too lazy?by friedo (Prior)
|on Aug 07, 2005 at 09:24 UTC||Need Help??|
friedo has asked for the
wisdom of the Perl Monks concerning the following question:
Dearest Monks and Monkesses,
I've recently been playing around with CGI::Application which I like a lot.
Every time I add a new runmode method, though, I forget to add it to the list that must be supplied to the run_modes method in the setup phase. Consequently, every time I try to run my app with a new mode, I get an error. "This is far too much work," I hollered, and changed my run_modes invocation to this:
Sure enough, that nicely maps ?rm=foo to the method rm_foo and I can now add modes to my heart's content.
But it does kinda give me the heebie-jeebies. Anyway,
Much obliged, friedo