http://qs321.pair.com?node_id=11103673


in reply to Re: remove entries with duplicate characters
in thread remove entries with duplicate characters

This:
while (<>) {
is wrong, because you assigned a file handler to your input file. So, this should be:
while (<$PROTFILE>) {
Otherwise, I am not sure why you want to set to paragraph mode.

There may be some other problems, but that should help you to get going.