adventofcode/04/passwords.pl
Yanick Champoux dc5ed3c759 day4
2017-12-04 10:21:24 -05:00

9 lines
130 B
Perl

use 5.20.0;
use List::AllUtils qw/ uniq sum /;
say sum map {
my @u = uniq @$_;
@u == @$_;
}
map { chomp; [ split ] } <>;