Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: CGI::Application cgi_prerun exception handlingby scorpio17 (Canon) |
on Jan 04, 2011 at 20:10 UTC ( [id://880448]=note: print w/replies, xml ) | Need Help?? |
You could do something like this:
Admittedly, this isn't that different... but it eliminates the prerun_error runmode. It also gives you the ability to call your error run mode either with an argument:
or without. If no argument is given, then the error run mode looks to see if there's anything in the stash, and if so it uses it - otherwise it spits out a generic default. You could use the stash to accumulate multiple errors. For example, if you were validating a form with lots of inputs, you could do something like:
In Section
Seekers of Perl Wisdom
|
|