Can you tell us more about what you are doing. CGI::App offers a
framework that helps you handle which run-mode (state) you want the
application to be in. This may answer your question but I don't think it
is really what you want.
sub Start
{
my $self = shift;
if ($foo)
{
return $self->DifferentMode();
}
else
{
# Get a template and display it.
my $template->load_tmpl('template.html');
return $template->output();
}
}
tomasz konefal wrote:
>hello list,
>
> i'm trying to do something like the following, but i'm not sure what the
>correct syntax is:
>
>---pseudo-code---
>
>if (defined foo) {
> change_to_different_run_mode();
>}
>else {
> do something;
>}
>
>---end---
>
>help?
>
>thanks,
> twkonefal
>
>
>=====
>"There never was economic evidence in favor of capital market liberalization... There
>still isn't. It increases risk and doesn't increase growth. You'd think [defenders
>of liberalization] would say to me by now, 'You haven't read these 10 studies,' but
>they haven't, because there's not even one. There isn't the intellectual basis that
>you would have thought required for a major change in international rules. It was all
>based on ideology." -- Joseph Stiglitz, former Chief Economist of the World Bank
>
>:wq!
>
>______________________________________________________________________
>Web-hosting solutions for home and business! http://website.yahoo.ca
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks,
Kenny Pyatt
President
Design Shack
www.dshack.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]