![]() |
![]() |
3 Einträge, 1 Seite |
Attempt to set nonexistend parameter 'param' - this parameter doesn't match any declarations in the template file: (die_on_bad_params=1) at director.pl line 15
1
2
3
4
5
6
7
8
<html>
<head>
<title>template</title>
</head>
<body>
<TEMPL_VAR NAME="VORNAME">
</body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!C:/Perl/bin/perl.exe
# Alle Vorsichtsmaßnahmen
use strict;
use warnings;
# Das Modul...
use HTML::Template;
# Die Umgebungsvariable setzen falls das helfen sollte...
$ENV{HTML_TEMPLATE_ROOT}='D:/.../cgi-bin';
# ...tut's nicht.
# neues Objekt, Template datei im gleichen Ordner
my $t = HTML::Template->new(filename=>'template.htm');
# Parameter setzen (Fehlerquelle)
$t->param(VORNAME=>"Test");
# Ausgabe
print "Content-Type: Text/html\n\n", $t->output;
![]() |
![]() |
3 Einträge, 1 Seite |