$file=$ARGV[0]; @all_IDS=(); open IN, $file; while() { chomp $_; push @all_IDs, $_; } close IN; #### use Text::Levenshtein qw(distance); $distance = distance ($id1, $id2);