On Mon, 1 Jul 2002, Will wrote:
> Supposing a script using both CGI.pm and
> HTML::Template... would the following be a functional
> assignment (such that the WHATEVER could be used in
> the .tmpl file)?
>
> $template->param(WHATEVER=>$CGI->param("blah"));
yes, this is correct, but not what is normally done.
you'd be better off doing an associate:
my $template = new HTML::Template(
filename => 'template.tmpl',
associate => $CGI
);
which will do the above for all cgi variables. Use your method only if
you want just one or two cgi vars sent to the template.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users