hey, i am trying to adapt a script i found on the internet but its not working. $fill_in is undef, but the values in SOURCE = '/cgi-bin/calendar/templates/hypercal.html' when strang together, which is the correct url for the file. i am using Text::Template.
thanks
Pedge
TYPE => 'FILE',
SOURCE => $self->templates . $args{TEMPLATES} . $template
);
my $filled = $fill_in->fill_in(
HASH => [ $self, $form, $details ],
DELIMITERS => [ '<%', '%>' ]
);
print $filled;
thanks
Pedge
Code:
print "Content-type: text/html\n\n";my $fill_in = Template->new( TYPE => 'FILE',
SOURCE => $self->templates . $args{TEMPLATES} . $template
);
my $filled = $fill_in->fill_in(
HASH => [ $self, $form, $details ],
DELIMITERS => [ '<%', '%>' ]
);
print $filled;