(Top)    < start_mode() param() >

run_modes()

Does 2 things:

  1. Registers valid values of the mode_param().

If the CGI query passes in any other run_mode name,
the application will die.

  1. Maps the parameter names to run-mode methods:
    (subroutines contained in this module)

Thus, if the CGI query includes

then $webapp->choose_type() will be called.

Alternative syntax:

(Less flexible, but less typing)


CGI::Application
(v.2.0)
13