Michael Peters wrote:
> 
> Roger Burton West wrote:
>> On Tue, Dec 05, 2006 at 09:20:40AM -0500, Robert Hicks wrote:
>>
>>> I have 3 separate loops using each of those. I am converting something
>> >from TT->HT and this works fine in TT. Is there something about how HT
>>> loops that is biting me? I am sure "I" am forgetting something.
>> In my experience, multiple loops of the same name will throw up this
>> problem - only the first loop gets checked. The simplest solution is to
>> set die_on_bad_params to zero.
> 
> He's right. H::T isn't very thorough when checking for the existence of
> variables in loops if the same loop is used more than once. Setting
> die_on_bad_params to false will let you get around this problem, but that 
> causes
> problems if you wanted strict templates in the first place.
> 
> Fixing this has been one of my TODOs for a while... Stupid $work and $life :)
> 
Forgive me if this is ignorant, I am not far along the path:

I have this:

my $rs = $sth->fetchall_arrayref(
          {
              BILL_CODE => 1,
              LABOR_CATEGORY => 1,
              LABOR_CATEGORY_DESCRIPTION => 1,
          }
      );


And I have this:

my $employee_info = $self->_get_employee_info();

Can I not reference those in separate calls:

$template->param(
     one => $employee_info[0],  # not sure what the construct would be
     two => $employee_info[1],
     three => $employee_info[2],
),

If not how do I set that param to 0 in a CA fashion?

Robert


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to