in reply to More with HTML:Template
This code works fine for me when I make my template like#!/usr/bin/perl #Loads the CGI Module use strict; use CGI; use HTML::Template; # creates a new CGI object my $page = new CGI; # Create a new HTML:Template object my $template = HTML::Template->new(filename => '..\Template\my.tmpl'); # This will print a standard HTML header print $page->header; # Grab a named CGI parameter my $value = $page->param("video"); #Now print out lots of HyperText Mark-up Language using # HTML::Template $template->param(text => $value); print $template->output; exit;
And, as is correctly stated before, please open the file like:<HTML> <TMPL_VAR NAME=text> </HTML>
I hope this will send you in the correct direction.open(SEE, "< ../$value") or die "The File could not be opened.";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: More with HTML:Template
by wog (Curate) on Nov 23, 2001 at 21:10 UTC |