Re: want <error> on demand
[email protected] ((Randal L. Schwartz)) 03 Jun 2005 04:03:26 -0700
| Newsgroups | perl.recdescent |
|---|---|
| Organization | Stonehenge Consulting Services; Portland, Oregon, USA |
| Message-ID | <[email protected]> |
>>>>> "Alexander" == Alexander Danel <[email protected]> writes: Alexander> I'd like to be able to force an <error> condition, based upon some Alexander> checking within an action. Forcing an "undef" result is not Alexander> satisfactory, since the parser just assumes the sub-rule failed; I want Alexander> the whole parse to halt. Just die. And no, I don't mean *you*. I mean use "die" in your code. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[email protected]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!