check_duplicate.pl