in reply to Re^2: concatenation of lines from two different files
in thread concatenation of lines from two different files
and removing the earlier (line 45ish) print statement that only prints the line from the first file. This way you're figuring out all in one place whether or not you are printing just one line or several.if ($aircraft_id_1 eq $aircraft_id_2){ #print "$aircraft_id_1 eq $aircraft_id_2\n"; print OUTFILE "$line_1;$line_2\n"; } else { print OUTFILE "$line_1\n"; }
As best as I can tell your matching logic is fine. Or am I missing something?
|
---|