my %seen; $seen{$_}++ for @observed; @permCounts = map { $seen{$_} || 0 } @perms;
In reply to Re^3: counting instances of one array in another array
by Anonymous Monk
in thread counting instances of one array in another array
by jsmagnuson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |