Handle all tag modifications in perl script