Help for this page

Select Code to Download


  1. or download this
    $listA[0] = [qw(1 foo bar)];
    $listB[0] = [qw(1 bar baz)];
    ...
    print "First record from \@listA: $listA[0][0]\n";
    
    @listToExpire = grep { } @listB;
    
  2. or download this
    my @listToExpire = grep { my $a = $_; (grep /$a/, @listA) ? () : ($a);
    + } @listB;