This is a follow up from my earlier post, but I've had much better luck narrowing it down to a simple test case. I'm using
This is perl, v5.6.1 built for MSWin32-x86-multi-thread with apache 1.3.x (The one they recommend on apache.com) and
HTML::Template version 2.6. All on windows XP.
Heres the perl script:
#!/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";
And heres the template, test.tmpl.
<html>
<head>
</head>
<body>
<tmpl_loop name='testloop'>
<img src=>
</tmpl_loop>
</body>
</html>
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.