develooper Front page | perl.perl6.language.regex | Postings from September 2000

Re: RFC 145 (alternate approach)

From:
David L. Nicol
Date:
September 5, 2000 15:29
Subject:
Re: RFC 145 (alternate approach)
Message ID:
39B5737E.E80FA920@kasey.umkc.edu
David Corbin wrote:

> > I've got some vague ideas on solving all of these, I'll go into if
> > people like the basic concept enough.

not just in regexes, but in general, a way to extend the set of bratches
that Perl knows about would be very nice.  for instance it is very difficult
for people using european keyboards to produce curlies; if it was possible to
say that Q is the opening brace and it matches against q later, or any arbitrary
characters, such as the single-character versions of << and >> which I am not
capable of producing, if it was possible to specify this in the code somewhere
for instance 

	$CORE::BRATCH{'Q'} = 'q';

(or maybe lexically scoped)

after that one could say 

	$isafromline = qrQ^Fromq;

for instance.


-- 
                          David Nicol 816.235.1187 nicold@umkc.edu
       perl -e'@w=<>;for(;;){sleep print[rand@w]}' /usr/dict/words



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