in reply to Re: Perl Golf-- testing array intersection
in thread Perl Golf-- testing array intersection

Prepending 0+ also fixes the context issue but is 4 characters shorter than “scalar”.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^3: Perl Golf-- testing array intersection
by GrandFather (Saint) on Jan 30, 2006 at 21:40 UTC

    Spoiler :) Actually 5 strokes shorter because scalar requires a space after it before the grep.


    DWIM is Perl's answer to Gödel