perl: fixed matching
authorRichard Kojedzinszky <krichy@tvnetwork.hu>
Fri, 26 Sep 2014 07:49:43 +0000 (09:49 +0200)
committerRichard Kojedzinszky <krichy@tvnetwork.hu>
Fri, 26 Sep 2014 07:49:43 +0000 (09:49 +0200)
uwc.pl

diff --git a/uwc.pl b/uwc.pl
index fa5e1e1..92bb4e0 100644 (file)
--- a/uwc.pl
+++ b/uwc.pl
@@ -5,7 +5,7 @@ my %counts;
 
 while (<STDIN>) {
        for (/([a-z']+)/goi) {
-               $counts{$1}++;
+               $counts{$_}++;
        }
 }