(Top) < start_mode() | param() > |
$webapp->run_modes( start => 'start', choose_type => 'choose_type', submit_order => 'submit_order', ); |
Does 2 things:
If the CGI query passes in any other run_mode name,
the application will die.
Thus, if the CGI query includes
then $webapp->choose_type() will be called.
Alternative syntax:
$webapp->run_modes([qw(start choose_type submit_order)]); |
(Less flexible, but less typing)
CGI::Application (v.2.0) |
13 |