my @table_a = table1->search_all(); my @table_b = table2->seatch_all(); #### [% FOREACH item IN table_a %] [% bold = "off" %] [% FOREACH other_item IN table_b %] [% IF (item.name == other_item.name) %]

[% item.name %]

[% bold = "on" %] [% END %] [% END %] [% IF bold == "off" %]

[% item.name %]

[% END %] [% END %]