Help for this page

Select Code to Download


  1. or download this
        while (defined($_ = <>) and $_ ne "quit\n") {
        ...
    
  2. or download this
        my @dupes = grep $lines{$_} > 1, keys %lines;
    
  3. or download this
        % perl -ne 'END { print grep $s{$_}>1, keys %s } last if $_ eq "qu
    +it\n"; $s{$_}++' file