ann.py: Various improvements.
[utils.git] / tel2name
index 819f0b5..1623d7c 100755 (executable)
--- a/tel2name
+++ b/tel2name
@@ -90,7 +90,7 @@ if($wppid == 0) {
 binmode(YP, ":utf8");
 binmode(WP, ":utf8");
 
-match: while(<YP>) {
+match: while(<WP>) {
     chomp;
     for $prev (@matches) {
        next match if (lc $prev) eq (lc $_);
@@ -99,7 +99,7 @@ match: while(<YP>) {
     flush;
     push @matches, $_;
 }
-match: while(<WP>) {
+match: while(<YP>) {
     chomp;
     for $prev (@matches) {
        next match if (lc $prev) eq (lc $_);