ELSE bug

Mitar <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Hi!

I have found a bug (or at least I think it is a bug and not a feature).

For a really simple program:

#!/usr/bin/perl -w

use strict;
use HTML::Template;

my $template = HTML::Template->new('filename'=>"test.tmpl");
print $template->output;

And this invalid template:

Before.
<TMPL_IF NAME="TEST">
1.
<TMPL_ELSE>
2.
<TMPL_ELSE>
3.
</TMPL_IF>
After.

HTML::Template does not output any error and just simply outputs the 2. case.

I think that HTML::Template should report this. Or is there some reason for it?

I use the 2.7 version and Perl 5.8.4.

Best regards


Mitar


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.