[Solved] How to inner join two tables?
You say you want solutions in Python, MySQL or MongoDB. But you’ve tagged the question with “perl”. So here’s a Perl solution. #!/usr/bin/perl use strict; use warnings; my %file1 = get_file1(); open my $fh2, ‘<‘, ‘File2’ or die “File 2: $!\n”; chomp(my $header = <$fh2>); print “$header\tcol_F\n”; while (<$fh2>) { chomp; my $colA = (split … Read more