my $file = "index.html"; my @codes = ("
", "", "UL"); # and many more open(FILE, "> $file") or die "Oops: $!"; while(); if ($_ eq @words) { $_ =~ s/@words/lc @word/g; } close(FILE);