in reply to Perl Golf-- testing array intersection

Your sub returns a list of 1s, which doesn't seem correct to me.

-sam

  • Comment on Re: Perl Golf-- testing array intersection

Replies are listed 'Best First'.
Re^2: Perl Golf-- testing array intersection
by Aristotle (Chancellor) on Jan 30, 2006 at 21:22 UTC

    In scalar context, it does return the number of 1s, which is what he wants.

    Makeshifts last the longest.