in reply to CGI::Application Run Modes Not Applying

Speaking generally, you'll want to layout your run modes something like this:
$self->run_modes([qw/ AUTOLOAD presentInvoiceEdit presentInvoice_proc Invoice_confirm /]);

presentInvoiceEdit will put up and HTML form prefilled with data if appropriate. This HTML will have a submit button, and a hidden field directing it to rm=presentInvoice_proc.

presentInvoice_proc will validate each submitted field, and take appropriate action (like storing it in a DB). From this run_mode, then call Invoice_confirm, which contains only presentation code.

You could combine the last two run_modes, but I find that it is better to keep them conceptually and physically seperated. One reason for this is that the confirmation screen can then be any other useful screen, and not just a "everything OK" message screen.

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