[htmltmpl] Small lisst error happening..
Brought to you by:
samtregar
From: Thomas C. <tch...@du...> - 2003-09-15 21:51:55
|
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 =3D= > 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=3Dmenu [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=3Dmenu my $template =3D HTML::Template->new(filename =3D> 'usermainpage.tmpl= ', loop_context_vars =3D> 1, die_on_bad_params =3D> 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? |