dcorbin has asked for the wisdom of the Perl Monks concerning the following question:
foo: bar
{
::processBar($item1)
}
Under certain circumstances (bad input) processBar will fail.
Now, I understand that if I return undef, the production should
fail, etc. What I want to do is be able to provide the
error message that processBar() has "calculated". I
tried adding <error: ${::getError()}> after the action, but
that doesn't seem to have worked... What's the best way to do
this. Should processBar just "print STDERR 'msg'"?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: RecDescent error handling
by maverick (Curate) on Sep 05, 2000 at 23:28 UTC | |
|
Re: RecDescent error handling
by merlyn (Sage) on Sep 05, 2000 at 23:23 UTC | |
by dcorbin (Sexton) on Sep 05, 2000 at 23:26 UTC | |
by merlyn (Sage) on Sep 05, 2000 at 23:28 UTC |