On Wed, Aug 16, 2000 at 07:39:33AM -0700, Dave Storrs wrote:
>       The idea of having two different regex "languages" in Perl makes
> me very, very nervous.  Potential for confusion 

Indeed.

>       How about instead we build the DFA as you describe, with its more
> limited syntax, but it must be manually turned on by use of a flag
> (similar to the 'o' precompiled flag)?

/o means "compile once" not "precompile"  I think you're thinking of
qr//

>       Actually this could be a good thing in general...when you're
> writing a frequently-used and hairy regex, you could set the 'precompile'
> and 'use DFA' flags to get maximum speed.

        $/ = qr/[\r\n]/f;       # fast ?

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to