perl_replace_tuple script which does multiple simultaneous overlapping pattern replacement which PREVENTS the problem of sed where one replacement might replace another: a->b->c, so that one ends up with 'c' everywhere