open FILE "<file1.text" or die "can't open file1 $!"; close FILE; while( <FILE> ){ $blurb{$_}++ if /^Query\b/ } open FILE "<file2.text" or die "can't open file2 $!"; while( <FILE> ){ print if /^Query\b/ && $blurb{$_}; } close FILE;
In reply to Re: Comparing strings in 2 files.
by I0
in thread Comparing strings in 2 files.
by pablo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |