Please show the code you are using now, so that we can suggest how to change it.
In general one can weed out duplicates by tracking printed items in a hash, but maybe that isn't necessary - hard to tell without seeing actual code, more input examples and desired output.
In reply to Re: print statement to avoid printing aline more than once
by moritz
in thread print statement to avoid printing aline more than once
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |