Help for this page

Select Code to Download


  1. or download this
    my %counts;
    my @commons = grep { ++$counts{$_} == @s }
                  map { my %seen; $seen{$_}++ for /./sg; keys %seen } @s;
    
  2. or download this
    use List::MoreUtils qw( uniq );
    my %counts;
    my @commons = grep { ++$counts{$_} == @s } map { uniq /./sg } @s;