Alternative:
my %counts; my @commons = grep { ++$counts{$_} == @s } map { my %seen; $seen{$_}++ for /./sg; keys %seen } @s;
or
use List::MoreUtils qw( uniq ); my %counts; my @commons = grep { ++$counts{$_} == @s } map { uniq /./sg } @s;
Tested.
In reply to Re: Find characters in ALL strings
by ikegami
in thread Find characters in ALL strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |