Didn't see this in the docs - might have missed it, please point out my
ignorance if so. :-)
If the app gets an unknown run_mode 'fubar' - the run() method croaks
No such run-mode 'fubar' at /path/to/cgi/MyRunnerApp line 20
--- Code in CGI-Application looks fairly straightforward
if (exists($rmodes{$rm})) {
$rmeth = $rmodes{$rm};
} else {
# Look for run-mode "AUTOLOAD" before dieing
unless (exists($rmodes{'AUTOLOAD'})) {
croak("No such run-mode '$rm'");
}
Assuming I want to filter out bad run_modes and return a 'nosuchmode'
run_mode instead with a pretty error - how would I go about doing that?
Perhaps this is a feature request for CGI::Application <grin>
Thanks
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]