Hi, everybody.

when I use CGI::Application like this:

package MyWeb;
use base qw/CGI::Application/;

sub setup {
     my $this = shift;

     $this->run_modes (
         'mode_1' => 'run_mode_1',
         ......
     }

     $this->start_mode('mode_1')
     $this->mode_param('action')



}

......

1;

so in my url, we can request the script like this:
http://127.0.0.1/cgi/test.pl?action=mode_1

but when I use that plugin

I will write code like this:

package MyWeb;
use base qw/CGI::Application/;
use CGI::Application::Plugin::AutoRunmode;

sub run_mode_1:StartMode {
   ......
}

1;

so my issue is: when I use that plugin, what's that parameter( I had
request, named 'action' in example1? it is run_mode_1? )?

thanks

Mike.G


}

#####  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/                 ##
##                                                            ##
################################################################

Reply via email to