[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] [NEWBIE] How to change run mode mid execution


If you'd like it to run all the way through run_mode_2 and exit, then
something like inside run_mode_1 should do the trick.

if( $statement == $true )
{
    return $self->run_mode_2();
}



===
steve comrie :: senior developer
http://www.shrinkingplanet.com

> Hi
>
> Firstly I'd like to apologise if this question has been asked before or if
the
> answer is so blindingly obvious I'm looking past it. I just discovered
> CGI::Application today and am having great fun with it. I couldn't find a
> searchable list archive so if I can find this info elsewhere please feel
free to
> shout (quietly) at me !
>
> I'd like to redefine the run mode of my application based on an evaluation
> within my script. For example if during "run_mode_1" I look in my database
and
> find value 'x' I'd like the application to change to "run_mode_2".
>
> Is this possible (I'm sure it should be) and what's the best way to
achieve it ?
>
> Many thanks


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.