>>>>> "J'P" == Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
J'P> $x = "_" x 100_000; J'P> $a = $x; $b = $x; $c = $x; J'P> $x is now copy-on-write, with three dependents. J'P> $x = 'foo'; J'P> We copy the 100,000 byte string to $a, $a gets $b and $c as dependents, J'P> and $b and $c accept $a as their master. Far less work. You like? why even copy the string even once? just set $a to point to the buffer that $x had and then do the rest. maybe call it alias upon overwrite. uri -- Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com -- Stem is an Open Source Network Development Toolkit and Application Suite - ----- Stem and Perl Development, Systems Architecture, Design and Coding ---- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org