I would like to see some more code in order to help you debug this.  How are
you setting the run mode in the application?

Also, if you print out or log the value of $run_mode each time
cgiapp_prerun() is called, what do you see?
-- Mark

On Thu, Feb 11, 2010 at 10:21 AM, Erez David <int...@gmail.com> wrote:

> Hi,
>
> I am using the cgiapp_prerun in order to check some condition before moving
> run-mode (Each tab in the application is a run mode...). if the condition
> is
> match then I want to move to other run-mod.
>
> The code is:
> sub cgiapp_prerun{
>    my $self = shift;
>    my $run_mode = shift;
> if ($run_mode eq 'run_mod2'){
> # Do some stuf...
> $self->prerun_mode('run_mod3');
> }
> }
>
> and indeed the application goes to run_mod2 but than it stuck there... even
> when I go to other run modes (run_mod4, run_mod5 etc...) it is still stuck
> in run_mod 3.
>
> Is there something wrong I am doing here?
>
> Thanks
> Erez
>

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