Help for this page

Select Code to Download


  1. or download this
    for my $elem ( @a ){
        push @z, $_ = ( first { $elem eq $_ } @b ) ? '+' : '-';
    }
    
  2. or download this
    >perl -wMstrict -MData::Dump -le
    "use List::Util      qw(first);
    ...
    $_ == 'foo'
    ++--+
    ++--+