aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-220/perlboy1967/perl/ch1.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-220/perlboy1967/perl/ch1.pl b/challenge-220/perlboy1967/perl/ch1.pl
index 2166bd4e3f..216a11d59a 100755
--- a/challenge-220/perlboy1967/perl/ch1.pl
+++ b/challenge-220/perlboy1967/perl/ch1.pl
@@ -28,7 +28,7 @@ use List::MoreUtils qw(uniq);
sub commonChars (@) {
my %c;
- map { $c{lc $_}++ } uniq split // for (@_);
+ map { $c{$_}++ } uniq split //,lc for (@_);
sort grep { $c{$_} >= scalar @_ } keys %c;
}