sub scrapTag # removes image tags from HTML document { while($htmlLines[$i] =~ m/]+)>/ig)