in reply to Replacing a Tag With a List

You don't need that /g, in this case, and you really don't need that /e.

use CGI qw/:standard/; open F, "< $flatfile_db" or die "read $flatfile_db: $!"; my $List = ul(li([<F>])); $header =~ s/<LIST>/$List/i;
We're building the house of the future together.