Hi Peter -- I realize you have solved your problem, but I wanted to add a philosophical context to your question. > How do I set a runmode from the instance script. IE there > are several 'entry' points to my application and I want to > be able to use my instance script to determine which one > the app. starts with. The whole point of CGI-App is to manage the run-modes of an application. This is done by changing the value of the "run-mode" parameter, usually CGI form parameter "rm": http://my.site/webapp.pl?rm=mode3 The "start mode" is a different thing. The start mode (set via the start_mode() method) is the run-mode which is executed if no value for "rm" is set. Here's the rub: Each CGI-App should only have one natural "start mode". This is not a technological limitation -- it is a philosophical one. One of the great CGI-App debates is "how big should my app modules be?" Some people make HUGE(!) "mega" application modules with 20 or 30 (or more!) run-modes. I tend to find these a bit overwhelming, but it's hard to say what the correct number of run-modes should be. Your question might actually be another test of this issue. Perhaps it can be said that a perfectly-sized CGI::Application-based module has exactly ONE intuitive and natural "start mode". If you think you need more than one start mode", maybe you need to separate your single module into two. Warmest regards, -Jesse- -- Jesse Erlbaum The Erlbaum Group suppressed Phone: 212-684-6161 Fax: 212-684-6226 --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/suppressed/ To unsubscribe, e-mail: suppressed For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.