[Perl]Return part result when one table has multiple foreign key