Help for this page

Select Code to Download


  1. or download this
    my %seen;
    while ( <DATA> ) {
      s/\s+$//;  # Remove trailing spaces and newline.
      print "$_\n" unless $seen{$_}++;
    }