Re: Probable bug in TMPL_LOOP

Philip Tellis <[email protected]> Tue, 29 May 2012 09:04:45 -0400
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <CAJ4Gv_bqsGd6eWvnrY06tdYxTwd=596VvCg4vStyksqzTpN8kw@mail.gmail.com>
On 29 May 2012 08:30, Boris Lobzov <[email protected]> wrote:
> Description:
>
> TMPL_VAR used for same variable both in the loop and outside of the
> loop, is empty when used within the loop.

you need to set the global_vars flag when calling 'new'.  See the docs here:

http://search.cpan.org/~wonko/HTML-Template-2.91/lib/HTML/Template.pm#Miscellaneous_Options

-- 
hello world

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/