associate - bug?

Горький Юрий <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.