my @split = split(/\|/, "$html_this_file"); my $html_of_file = get $split[0]; my @prefs = split(/\#/, "$split[1]); my $j; for ($j = 0; $j <= $#prefs; $j++) { $html_of_file =~ s/$split[2]//s; $html_of_file =~ s/$split[3]//s; my @pieces = split(//, $html_of_file); $html_of_file = $pieces[1]; $html_of_file =~ s///gis; $html_of_file =~ s///gis; if ($prefs[$j] eq 'a') { $html_of_file =~ s///gis; } elsif ($prefs[$j] eq 'all') { $html_of_file =~ s/<.*?>//gis; } else { $html_of_file =~ s/<$prefs[$j].*?>//gis; } }