I'm getting the below server error.

HTML::Template->new() called with odd number of option parameters - 
should be of the form option => value at 11102post.pl line 468

Line 468 reads:
    my $template = HTML::Template->new(filename => $pperror_template);

An earlier instance calling HTML::Template in the same file works 
fine. The error occurs when try to use it later in the script and 
causes the same error even when I copy and paste the earlier working 
code. My guess is that something other than calling the module is 
causing the error but I'm at a loss as to what to look for. If I 
remove the code block below, all works OK including the earlier use 
of Template. Any ideas where to look?

Tom
----------
        my $template = HTML::Template->new(filename => $pperror_template);
        $template->param(
                        _pe          => $post_error,
                        _wuser       => $post_error_wuser,
                        _wemail      => $post_error_wemail,
        );
        print "Content-type: text/html\n\n";
        print $template->output;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to