sub In_Common2 { my ($str1, $str2) = @_; (my $common = reverse $str2) =~ s/[^$str1]|(.)(?=.*\1)//g; return scalar reverse $common; }
In reply to Re: Unique List of Common Characters Between Two Strings
by sleepingsquirrel
in thread Unique List of Common Characters Between Two Strings
by Limbic~Region
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |