Add strictures (use strict; use warnings;) to your code, clean up the issues that creates, then see if the problem remains.
As it stands there are a large number of variables initialised (maybe) but unused and a number of arrays are referenced, but their use is not clear. Your unique test looks fine. Your data reading looks like rubbish.
Generate a sample script using __DATA__ to provide the data and show us what you get and what you expect.
In reply to Re: how to remove duplicate strings?
by GrandFather
in thread how to remove duplicate strings?
by heidi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |