use strict; use CGI::Pretty; use Carp qw(croak); my $sitelist_file='}; close $data; print header(), start_html({title=>$title}); foreach my $line (split "\n", $text){ $response->write($line); }; print end_html;