develooper Front page | perl.perl5.porters | Postings from August 2000

Re: how to abort a match branch?

From:
Tom Christiansen
Date:
August 4, 2000 04:01
Subject:
Re: how to abort a match branch?
Message ID:
26848.965386863@chthon
>A regex's (?{...}) block is always considered to "match" successfully, but
>it'd be nice to be able to have it be unsuccessful. This would allow
>generic "if such and such is the case, abort this branch" components of
>regexes.

[supporting explanation deleted]

Agreed.  This has been previously observed, at least by some of us.
In fact, to some of us, that it was not that way came as quite a shock
(myself included).  It belies the term "assertion".  Abortable blocks
should be on the table for perl6 -- at least, and maybe earlier, too.

--tom



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About