Re: Invalid Operating System

[prev] [thread] [next] [lurker] [Date index for 2006/12/17]

From: Earle Martin
Subject: Re: Invalid Operating System
Date: 12:40 on 17 Dec 2006
On 17/12/06, A. Pagaltzis <pagaltzis@xxx.xx> 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/
There's stuff above here

Generated at 22:02 on 27 Dec 2006 by mariachi 0.52