In scalar context, it does return the number of 1s, which is what he wants.
Makeshifts last the longest.
In reply to Re^2: Perl Golf-- testing array intersection
by Aristotle
in thread Perl Golf-- testing array intersection
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |