in reply to Re^2: Select only desired features from a textin thread Select only desired features from a text
Use a second hash to store those (partial) lines that you've already seen, and only print out those lines that aren't in the hash yet.