On 17/12/06, A. Pagaltzis <[email protected]> wrote:
Secondly, quotes are so frequently part of a pattern that using
them as delimiters for patterns is even worse than using forward
slashes; backslashes galore.

s{foo"/"/"/}{foo};

or perhaps

s(foo"/"/"/)(foo);

Paired delimiters are my friends and help make regexes slightly less
hateful. On the other hand, the ability to use almost anything at all
as a delimiter is truly hateful. I have of late had to correct some
legacy code that used ~ as a delimiter. s~foo"/"/"/~foo~ Why, oh why?
And worse yet, " " (a space) is also valid. Making this possible:

http://beta.nntp.perl.org/group/perl.fwp/2006/09/msg3947.html

Sigh.


--
Earle Martin
           http://downlode.org/
http://purl.org/net/earlemartin/

Reply via email to