Re: H::T::Expr with multiple or

Sam Tregar <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On Fri, 25 Feb 2005, Thomas Gutzler wrote:

> it looks a bit dodgy to me, that
> <TMPL_IF EXPR="(foo eq 'bar') || (foo eq 'bar2')">
> works well but
> <TMPL_IF EXPR="(foo eq 'bar') || (foo eq 'bar2') || (foo eq 'bar3')">
> has to be written as
> <TMPL_IF EXPR="((foo eq 'bar') || (foo eq 'bar2')) || (foo eq 'bar3')">
> to get it working.
> Is that a known bug or meant to be as a feature? :)

It's a known bug - one that I nearly solved last month but didn't
finish.  You can read about it here:

  http://perlmonks.org/?node_id=414823

I think jryan's suggestion is correct and seemed to be working
well... and then I got distracted.  I hope to get back to it sometime
soon.

-sam


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
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.