X-Git-Url: http://dolda2000.com/gitweb/?p=utils.git;a=blobdiff_plain;f=tel2name;h=1623d7c1d641d804ece7da982ebcdf040f7bdcd9;hp=f9744bcc7d7fc92887ac80ad928dd8de2adee470;hb=307f4e9308c8c11069f48e3bd88fbedddf4f6de3;hpb=27366e7151d7e024586d85afee05ea638c151169 diff --git a/tel2name b/tel2name index f9744bc..1623d7c 100755 --- a/tel2name +++ b/tel2name @@ -90,21 +90,21 @@ if($wppid == 0) { binmode(YP, ":utf8"); binmode(WP, ":utf8"); -match: while() { +match: while() { chomp; for $prev (@matches) { - next match if $prev eq $_; + next match if (lc $prev) eq (lc $_); } + print "$_\n"; + flush; push @matches, $_; } -match: while() { +match: while() { chomp; for $prev (@matches) { - next match if $prev eq $_; + next match if (lc $prev) eq (lc $_); } + print "$_\n"; + flush; push @matches, $_; } - -for $match (@matches) { - print "$match\n"; -}