Help for this page

Select Code to Download


  1. or download this
    my @intersection =
        grep { defined }
            @{ { map { lc ,=> $_ } @a } }
               { map { lc } @b };
    
  2. or download this
    $ perl -MO=Deparse -e 'my @intersection =
        grep { defined }
    ...
    '
    my(@intersection) = grep({defined $_;} @{+{map({lc $_, $_;} @a)};}{map
    + {lc $_;} @b});
    -e syntax OK