modification to extractTags.pl to conform to strict