Help for this page

Select Code to Download


  1. or download this
    for my $x (@x) { push @z, (grep {$_ == $x} @y) ? '+' : '-'; }
    
  2. or download this
    my %k = map {($_, 1)} @y;
    for my $x (@x) { push @z2, (exists $k{$x}) ? '+' : '-'; }