[PREV - GETTING_ONE_FRAME]    [TOP]
NEXT

SUBTLE_PROBLEM


  A problem with multiple s{}{}g runs:

 (1)  Earlier passes move string          (2)  Changed regions
      locations around from the point          can overlap.
      of view of later passes.

      We know the *regions* where
      expansions and contractions
      happen, but not the precise
      point.

      Applying length changes at the
      end of the changed region is
      just a heuristic.

      Here are two decreases in length,
      one happens at the end, the other
      at the beginning:

        s/in the Hat/Spat/;  # The Cat Spat
        s/The Cat /Spit/;    # Spit in the Hat

--------
[NEXT - MODERN_PERL]