Not really elegant; I just thought it was a nifty one-liner.my @common = (join ' ', @s) =~ /(.)(?=(?:.* .*\1){$#s})/g;
In reply to Re: Find characters in ALL strings
by Roy Johnson
in thread Find characters in ALL strings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |