Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        chomp;
        $no_dupes{$_} = $. if (! exists $no_dupes{$_});
    }
    
  2. or download this
    use strict;
    use warnings;
    ...
                keys %folded_lines;
    
    print RESULT_FILE $_, ': ', join( ', ', @$folded_lines{$_} ), "\n" for
    + @dupes;
    
  3. or download this
    foreach ( @dupes ) {
        print RESULT_FILE
    ...
            join( ', ', @{$folded_lines{$_}}[ 1 .. $#{$folded_lines{$_}} ]
    + ),
            "\n";
    }
    
  4. or download this
    don't panic: 34, 55, 89, 144