Re: RFC 110 (v2) counting matches

[email protected] (Mark-Jason Dominus)
Newsgroups perl.perl6.language.regex
Message-ID <[email protected]>
> On Tue, 29 Aug 2000 08:47:25 -0400, Mark-Jason Dominus wrote:
> 
> >        m/.../Count,Insensitive   (instead of m/.../ti)
> >
> >That would escape the problem that we are running out of letters and
> >also the problem that the current letters are hard to remember.
> 
> Yes, but wouldn't this give us backward compatibility problems? For
> example, code like
> 
> 	$result = m/(.)/Insensitive, ord $1;

No, because that is presently a syntax error.  The one you have to
watch out for is:

        $result = m/(.)/s,Insensitive, ord $1;

> And, I don't really see the need for the comma.
> 
>         m/.../CountInsensitive   (instead of m/.../ti)

I guess, but to me CountInsensitive looks like one option, not two.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.