Subject: | cannot override :StartRunmode on the instance level |
Code like this does not work:
{
package MyTestApp;
use base 'CGI::Application';
use CGI::Application::Plugin::AutoRunmode;
sub mode1 : StartRunmode {
'called mode1';
}
sub mode2 {
'called mode2 in the super class'
}
my $app = new MyTestApp();
$app->start_mode('mode2');
}