Ok, I've now pulled my hair out..

  I'm using HTML::Template for the first time, I've always done it using
my own custom rolled template system from way back.

  Here is whats happening.  It seems WHENEVER I pass loop_context_vars =>
1 in the new, I get this:

[Mon Sep 15 17:38:18 2003] [error] [client 192.168.0.204] [Mon Sep 15
17:38:18 2003] WebApp.pl: Error executing run mode 'usermainpage':
HTML::Template->output() : fatal error in loop output : Can't use string
("1") as a HASH ref while "strict refs" in use at
C:/Perl/site/lib/HTML/Template.pm line 2894., referer:
http://hppav/hhomes/WebApp.pl?rm=menu
[Mon Sep 15 17:38:18 2003] [error] [client 192.168.0.204] [Mon Sep 15
17:38:18 2003] WebApp.pl:  at WebApp.pm line 261, referer:
http://hppav/hhomes/WebApp.pl?rm=menu

    my $template = HTML::Template->new(filename => 'usermainpage.tmpl',
loop_context_vars => 1, die_on_bad_params => 0); is what I use to
create it.  Removing the die_on_bad_params option causes everything to
work fine.  I know, I'm prolly just running on not enough sleep, but..

    Am *I* doing anything wrong here?


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to