Re: RFC 308 (v1) Ban Perl hooks into regexes
[email protected] (Hugo) Tue, 26 Sep 2000 22:47:58 +0100
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <[email protected]> |
In <[email protected]>, Bart Lateur writes: :On 25 Sep 2000 20:14:52 -0000, Perl6 RFC Librarian wrote: : :>Remove C<?{ code }>, C<??{ code }> and friends. : :I'm putting the finishing touches on an RFC to drop (?{...}) and replace :it with something far more localized, hence cleaner: assertions, also in :Perl code. That way, : : /(?<!\d)(\d+)(?{$1 < 256})/ : :would only match integers between 0 and 255. I'd like to suggest an alternative semantic for this: rename (??{ code }) to (?&{ code }), and use the newly freed (??{ code }) for the assertions. (I was about to write an RFC for just that, so I'm glad I can save a bit of time. :) Hugo