my $s = 'vif The increase in sensitivity of HIV - infected cells to vif Fas killing mapped to vpu , while nef , vif, vif , vpr , and second exon of tat did not appear to contribute'; my @ar = split m%()%, $s; for my $i (0 .. @ar/4) { $ar[4*$i]=~ s%vif%vif%; } $s = join q[],@ar; print "$s\n";