Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    open( IN, "$infile1" ) or die "Can't open $infile1" $linecount = 0;
    ...
        $linecount = $linecount + 1;
        push( @{ $hash{$line} }, $linecount );
    }
    
  2. or download this
       push @{ $hash{$line} }, $.;
    
  3. or download this
    push @{ $hash{$_} }, $. while <IN>;
    
  4. or download this
    close IN;