#!/home/cuthbe/bin/perl open(T,"test.html") || die ("Unable to open file. $!\n"); foreach () { s/<[^>]+>//g; s/ //g; s/