BUU has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl require HTML::Template; my $ht=new HTML::Template(filename=>'test.tmpl'); $ht->param(testloop=>[{},{}]); print "Content-type: text/html\n\n"; print $ht->output; warn "_____TEST_____\n";
My error message is everytime I hit test.pl in my browser, i see two "_____TEST_____" messages in my error.log file, both with the exact same time stamps. However, if i delete the equal sign in the <img src=> or if i comment out the param call, I no longer see two warnings. Please, somebody explain this to me.<html> <head> </head> <body> <tmpl_loop name='testloop'> <img src=> </tmpl_loop> </body> </html>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(jeffa) Re: HTML::Template, two warnings, part two.
by jeffa (Bishop) on Apr 16, 2003 at 14:04 UTC | |
|
Re: HTML::Template, two warnings, part two.
by DrManhattan (Chaplain) on Apr 16, 2003 at 15:17 UTC | |
|
Re: HTML::Template, two warnings, part two.
by Heidegger (Hermit) on Apr 16, 2003 at 15:46 UTC | |
by BUU (Prior) on Apr 16, 2003 at 21:02 UTC | |
|
Re: HTML::Template, two warnings, part two.
by cfreak (Chaplain) on Apr 16, 2003 at 13:53 UTC | |
by BUU (Prior) on Apr 16, 2003 at 14:06 UTC |