Skip to content

Instantly share code, notes, and snippets.

@akiniwa
Created December 22, 2014 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akiniwa/cd3c6b635ca6d691a127 to your computer and use it in GitHub Desktop.
Save akiniwa/cd3c6b635ca6d691a127 to your computer and use it in GitHub Desktop.
2つのファイルをキーデータで結合
$file = $ARGV[0];
open(IN, $file) or die("error : $!");
my $keyID = {};
my $count = 0;
while (my $line = <IN>) {
chomp($line);
my @id = split(/\t/, $line);
$keyID[$id[0]] = $id[1];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment