$a = $b; # ... (other code which does not modify $a or $b) ... ++$b; #### $a = $b; # ... $b = $b->clone(undef, ""); $b->incr(undef, "");