More validation for find duplicate perl code dialog