- or download this
sub new {
my ($class) = @_;
...
$self->{_html} = $html if defined($html);
return ( $self->{_html} );
}
- or download this
my $template = eval { new Template(); } or die ($@);
$template->header($html, $header, $time);
- or download this
sub header {
my $html = shift;
my $header = shift;
my $time = shift;
open (OUT,">$html") or die ("No html file: $!\n");