#!/usr/bin/perl use strict; use warnings; use HTML::Template qw(); use CGI qw(); my $fName = 'sample.html'; open my $temp, '>', $fName or die "Can't create $fName: $!\n"; print $temp <<'HTML';
##
Content-Type: text/html; charset=ISO-8859-1
testme
Hello
Goodbye
Friend
Adios
Amigo