generating an error within an action
[email protected] ((PerlDiscuss - Perl Newsgroups and mailing lists)) 18 Nov 2004 10:47:36 -0000
| Newsgroups | perl.recdescent |
|---|---|
| Organization | PerlDiscuss.com |
| Message-ID | <[email protected]> |
I'm parsing a list of statements where names must be declared first before being used. If I detect in an action that a statement uses a name that hasn't been declared (because I have a hash of the declarations), how can I cause PRD to report a meaningful error? I know I can return undef from the action to cause the parse to fail, but I'd like to add a helpful message. I can't find this in the pod or faq. Thanks, Dave PS Please cc me. I'm not subscribed.