in reply to CGI::Application 'No such run mode...'

You don't say how you invoke your test program. Did you do something like:

http://you.com/foo.pl

or

http://you.com/foo.pl?rm=mode1

try out the later, along with rm=mode2 , etc.

I also noticed that in your simplePage sub you are writing the header. This is incorrect, CGI::App takes care of this.

-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday

  • Comment on Re: CGI::Application 'No such run mode...'

Replies are listed 'Best First'.
Re: Re: CGI::Application 'No such run mode...'
by Anneq (Vicar) on Dec 24, 2003 at 01:01 UTC
    freddo411,

    Thanks for your response:

    You don't say how you invoke your test program. Did you do something like:
    http://you.com/foo.pl
    or
    http://you.com/foo.pl?rm=mode1
    try out the later, along with rm=mode2 , etc.

    In get_common_stuff(), two links are defined and called by other subroutines (modes). The user would select a link with a href like: mywebapp.pl?rm=mode'....


    I also noticed that in your simplePage sub you are writing the header. This is incorrect, CGI::App takes care of this.

    Actually, this sample code shows three different ways to make use of combinations of CGI::Application, CGI.pm and CGI::Template. Its quite a handy reference for me, but as you say, it doesn't appear to be using CGI::Application as it was intended.

    Regards,

    Anne