Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$file=$ARGV[0]; @all_IDS=(); open IN, $file; while(<IN>) { chomp $_; push @all_IDs, $_; } close IN;
use Text::Levenshtein qw(distance); $distance = distance ($id1, $id2);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compare each array element to the rest, sequentially
by Dallaylaen (Chaplain) on Dec 07, 2017 at 15:32 UTC | |
|
Re: Compare each array element to the rest, sequentially
by Laurent_R (Canon) on Dec 07, 2017 at 23:11 UTC | |
by NetWallah (Canon) on Dec 08, 2017 at 02:33 UTC | |
by Laurent_R (Canon) on Dec 08, 2017 at 08:52 UTC | |
|
Re: Compare each array element to the rest, sequentially
by thanos1983 (Parson) on Dec 07, 2017 at 18:16 UTC | |
|
Re: Compare each array element to the rest, sequentially
by Anonymous Monk on Dec 07, 2017 at 15:17 UTC | |
by poj (Abbot) on Dec 07, 2017 at 16:27 UTC |