develooper Front page | perl.perl5.porters | Postings from July 2001

Re: regexes: more end-of-string optimizations

Thread Previous | Thread Next
From:
perl5-porters
Date:
July 29, 2001 06:57
Subject:
Re: regexes: more end-of-string optimizations
Message ID:
9k14r8$148$1@post.home.lunix
In article <Pine.GSO.4.21.0107282304050.28213-100000@crusoe.crusoe.net>,
	Jeff 'japhy/Marillion' Pinyan <jeffp@crusoe.net> writes:
> This leads me to my optimization proposal:  unless (??{ ... }) interferes,
> any regex with a $ or \Z or \z end-of-string anchor should be able to fail
> immediately upon inspection of the end of the string.

don't forget that the m modifier also interferes for $

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About