$ ./test < textfile | sort | uniq #### open(IN,"<$file") or die "Cannot read $file: $!\n"; my @content = ; close(IN); close(IN);