Compare names case insensitively in tel2name.
[utils.git] / tel2name
index 7e01302..819f0b5 100755 (executable)
--- a/tel2name
+++ b/tel2name
@@ -93,7 +93,7 @@ binmode(WP, ":utf8");
 match: while(<YP>) {
     chomp;
     for $prev (@matches) {
-       next match if $prev eq $_;
+       next match if (lc $prev) eq (lc $_);
     }
     print "$_\n";
     flush;
@@ -102,7 +102,7 @@ match: while(<YP>) {
 match: while(<WP>) {
     chomp;
     for $prev (@matches) {
-       next match if $prev eq $_;
+       next match if (lc $prev) eq (lc $_);
     }
     print "$_\n";
     flush;