Larry Wall <[EMAIL PROTECTED]> writes:

[...]

>     /pat/x            /pat/

How do I do a "no /x"?  I know that commented /x'ed regexps are easier
reading (I even write them myself, I swear I do!), but having to
escape whitespace is often very annoying.  Will I really have to
escape all spaces (or use <sp>, below)?

This also marks a significant departure from UN*X-style regexps.  One
reason learning Perl's regexp language was so convenient (to me) was
that that most of what I knew of UN*X regexps was applicable.
Changing the behaviour of a rather useful character (like ASCII 32) is
going to produce many references to the FAQ "Why doesn't /a word/
match 'a word'?".  (Having to escape #s is not as bad, as they are
less common).

[...]

-- 
Ariel Scolnicov        |http://3w.compugen.co.il/~ariels
Compugen Ltd.          |[EMAIL PROTECTED]
72 Pinhas Rosen St.    |Tel: +972-3-7658117      "fast, good, and cheap;
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555       pick any two!"


Reply via email to