[cgiapp] one question about the plugin: CGI::Appliclation::Plugin::AutoRunmode

Mike.G hylinux at gmail.com
Wed Jun 4 04:21:57 EDT 2008


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


}


More information about the cgiapp mailing list