On Feb 13, 2008 6:02 PM, Lou Hernsen <suppressed> wrote: > Ok thanks.. reading.. absorbing... percieving but still not grokking... The run modes that were mentioned are just a way to abstract the URL to a subroutine to handle whatever action is associated with that URL. C::A does the "if/else" logic for you. You just have to register the URL (either a parameter on the URL, or in the POSTed form) and associate it with a subroutine. When the application is invoked with that parameter (or form value) it will automatically call the subroutine. If you read those two articles you'll get the idea. There's a plug-in that might make it easier for you (but, I personally like traditional run modes): http://search.cpan.org/~jaywhy/CGI-Application-Plugin-ActionDispatch-0.91/lib/CGI/Application/Plugin/ActionDispatch.pm This lets you specify the URL with each subroutine. If the URL matches, that's the subroutine that's executed. No run modes. Mark ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.