in reply to Re^2: File Intersection problem
in thread File Intersection problem
open(FD, "File2.txt") || die "Cannot open file"; my @input_array = <FD>; foreach my $line (@input_array) { chomp($line); my $cnt = 0; map {($line =~ /$_/)?++$cnt:$cnt}keys %href; print "$line $cnt\n"; }
|
|---|