in reply to print statement to avoid printing aline more than once
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.
|
|---|