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

Reply via email to