- 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 );
}
- or download this
push @{ $hash{$line} }, $.;
- or download this
push @{ $hash{$_} }, $. while <IN>;
- or download this
close IN;