Help for this page

Select Code to Download


  1. or download this
    my $prev;
    while (<>) {
        print if defined($prev) and $_ ne $prev;
        $prev = $_;   # update $prev
    }