Help for this page

Select Code to Download


  1. or download this
    my $prev;
    while (<>) {
    ...
        print;
        $prev = $ARGV;
    }
    
  2. or download this
    while (<>) {
        if (not defined $prev or $prev ne $ARGV) {
    ...
        print "and that's the end of $ARGV\n" if (eof);
        $prev = $ARGV;
    }