Re: RFC 158 (v1) Regular Expression Special Variables
[email protected] ("David L. Nicol")
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Organization | University of Missouri - Kansas City supercomputing infrastructure |
| Message-ID | <[email protected]> |
Tom Christiansen wrote:
> There's also long been talk/thought about making $& and $1
> and friends magic aliases into the original string, which would
> save that cost.
I was distressed to discover that s///g does not rebuild the
old string between matches, but only at the end. It broke my
random anagram generator which was depending on instant updates.
If STRING was a linked list of partially full blocks rather than
a big piece of contiguous space, we could do length-altering substitutions
without copying.
--
David Nicol 816.235.1187 [email protected]
safety first: Republicans for Nader in 2000