Hello html-template-users,

  may be I'm mistaken, but pod says:

  You can specify multiple objects to associate by passing an
  anonymous array to the associate option. They are searched for
  parameters in the order they appear:  

  my $template = HTML::Template->new(filename => 'template.tmpl',
                                     associate => [$query, $other_obj]);

  as I understand, "They are searched for parameters in the order they
  appear" means that if we have

  $query->param(some_param => 'value1');
  $other_obj->param(some_param => 'value2');

  then $template->param('some_param') should be equal to 'value1'

  ($query appears _earlier_ in associate)

  but the fact is that $template->param('some_param') is equal to
  'value2'

  am I mistaken?

-- 
Best regards,
 Jury Gorky                          mailto:[EMAIL PROTECTED]



-------------------------------------------------------
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
_______________________________________________
Html-template-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/html-template-users
  • ... Горький Юрий

Reply via email to