Re: Line disciplines (was Re: RFC 69 (v3) Standardize input record separator)

[email protected] (Jonathan Scott Duff) Wed, 16 Aug 2000 09:54:27 -0500
Newsgroups perl.perl6.language.io
Message-ID <[email protected]>
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]