Hi there,
I get the error message 'no such run mode', although there is a sub
defined
and if defined the sub to handle the run mode in run_modes().
But some more details on my problem:
I have different classes, which all inherit from one base class, and
that base
class of course inherits from CGI::Application. So my hierarchy looks
like this:
---------------
| i3 | --> base class, inherits from CGI::Application
---------------
| ---------------
|---| i3::i3_task |
| ---------------
| ------------------
|---| i3::i3_project |
------------------
The setup sub in i3::i3_project for example (it's almost the same for
i3::i3_task) looks like this:
sub setup {
my $self = shift;
$self->start_mode('prj_news');
$self->mode_param('action');
$self->run_modes(
'login' => \&i3::login,
'logout' => \&i3::logout,
'prj_help' => \&prj_help,
'prj_news' => \&prj_news
);
As you can see, there' nothing unusual, here, just, that the run mode
sub
is not from the local package but from the inherited 'i3'.
Im running it under a Cobalt Raq3 with '5.005_03 built for i386-linux',
and although I define the sub and the run_mode I get the error, that
there is no
such run_mode. I always get the error, when I try to access a run mode,
that points to a sub that's in the base class 'i3'. And sometimes I get
the error even if I access a sub that's defined in the actual package
(e.g. i3::i3_task). I couldn't trace it down, why sometimes the sub is
found, and sometimes not.
Any ideas or suggestions why he can't find the sub?
Thanks in advance
Benjamin
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT/P dx s: a? C(+++) L++ P+++ N++ w PS+ PE-(++) Y+ PGP
t+ 5- X R@ !tv b+++ DI(+) D+ G e++(+++) UF++ h-- r@ y?
------END GEEK CODE BLOCK------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]